FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/cfgmagic/processconf.sh @ 524:11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 14 Jul 2014 07:03:53 +0000 |
parents | 6f4cadd1fd7f |
children | 407c20f90f6a |
comparison
equal
deleted
inserted
replaced
523:b92febec14aa | 524:11b6ca57a079 |
---|---|
55 then | 55 then |
56 echo \ | 56 echo \ |
57 "Error: RAMFFS_BLKSIZE_LOG2 and RAMFFS_NBLOCKS need to be defined" 1>&2 | 57 "Error: RAMFFS_BLKSIZE_LOG2 and RAMFFS_NBLOCKS need to be defined" 1>&2 |
58 exit 1 | 58 exit 1 |
59 fi | 59 fi |
60 export_to_c RAMFFS_BLKSIZE_LOG2 | 60 export_to_c RAMFFS_BLKSIZE_LOG2 RAMFFS_NBLOCKS |
61 export_to_m4 RAMFFS_BLKSIZE_LOG2 | 61 export_to_m4 RAMFFS_BLKSIZE_LOG2 RAMFFS_NBLOCKS |
62 export_to_c RAMFFS_NBLOCKS | 62 fi |
63 export_to_m4 RAMFFS_NBLOCKS | 63 |
64 # L1 configuration | |
65 if [ "$CONFIG_GSM" = 1 -a "$CONFIG_L1_STANDALONE" = 1 ] | |
66 then | |
67 echo "Error: feature gsm and feature l1stand are mutually exclusive" \ | |
68 1>&2 | |
69 exit 1 | |
70 fi | |
71 if [ "$CONFIG_GSM" = 1 -o "$CONFIG_L1_STANDALONE" = 1 ] | |
72 then | |
73 CONFIG_INCLUDE_L1=1 | |
74 export_to_c CONFIG_INCLUDE_L1 | |
75 export_to_mk CONFIG_INCLUDE_L1 | |
64 fi | 76 fi |
65 | 77 |
66 # The list of build components: we have some invariants that are always | 78 # The list of build components: we have some invariants that are always |
67 # included, and some others that are included depending on the configuration. | 79 # included, and some others that are included depending on the configuration. |
68 | 80 |
69 BUILD_COMPONENTS="bsp nucleus riviera serial services sprintf sysglue" | 81 BUILD_COMPONENTS="bsp nucleus riviera serial services sprintf sysglue" |
70 | 82 |
71 if [ "$CONFIG_GPF" = 1 ] | 83 if [ "$CONFIG_GPF" = 1 ] |
72 then | 84 then |
73 BUILD_COMPONENTS="$BUILD_COMPONENTS gpf" | 85 BUILD_COMPONENTS="$BUILD_COMPONENTS gpf" |
86 fi | |
87 if [ "$CONFIG_INCLUDE_L1" = 1 ] | |
88 then | |
89 BUILD_COMPONENTS="$BUILD_COMPONENTS L1" | |
74 fi | 90 fi |
75 | 91 |
76 export_to_mk BUILD_COMPONENTS | 92 export_to_mk BUILD_COMPONENTS |
77 | 93 |
78 # The support for building flashable images is not here yet, | 94 # The support for building flashable images is not here yet, |