comparison gsm-fw/cfgmagic/processconf.sh @ 637:0677a6fbb8b6

gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 03 Sep 2014 16:03:38 +0000
parents 4cd1dcc167e4
children 46e5c90fd0b8
comparison
equal deleted inserted replaced
636:06ecb305f650 637:0677a6fbb8b6
19 FFS_IN_RAM=1 19 FFS_IN_RAM=1
20 RVTMUX_UART_port=IrDA 20 RVTMUX_UART_port=IrDA
21 RVTMUX_UART_baud=115200 21 RVTMUX_UART_baud=115200
22 FLASH_BOOT_VIA_BOOTROM=1 22 FLASH_BOOT_VIA_BOOTROM=1
23 FLASHIMAGE_BASE_ADDR=0x2000 23 FLASHIMAGE_BASE_ADDR=0x2000
24
25 # We always export CONFIG_INCLUDE_xxx to config.h and config.mk, whether
26 # enabled or disabled. This way enabling any of these components is
27 # as simple as CONFIG_INCLUDE_xxx=1, without having to remember the
28 # export_to_{c,mk} magic.
29 CONFIG_INCLUDE_CCD=0
30 export_to_c CONFIG_INCLUDE_CCD
31 export_to_mk CONFIG_INCLUDE_CCD
32 CONFIG_INCLUDE_GPF=0
33 export_to_c CONFIG_INCLUDE_GPF
34 export_to_mk CONFIG_INCLUDE_GPF
35 CONFIG_INCLUDE_L1=0
36 export_to_c CONFIG_INCLUDE_L1
37 export_to_mk CONFIG_INCLUDE_L1
38 CONFIG_INCLUDE_PCM=0
39 export_to_c CONFIG_INCLUDE_PCM
40 export_to_mk CONFIG_INCLUDE_PCM
41 CONFIG_INCLUDE_SIM=0
42 export_to_c CONFIG_INCLUDE_SIM
43 export_to_mk CONFIG_INCLUDE_SIM
24 44
25 . ./build.conf 45 . ./build.conf
26 46
27 if [ -z "$TARGET" ] 47 if [ -z "$TARGET" ]
28 then 48 then
71 then 91 then
72 echo "Error: feature gsm and feature l1stand are mutually exclusive" \ 92 echo "Error: feature gsm and feature l1stand are mutually exclusive" \
73 1>&2 93 1>&2
74 exit 1 94 exit 1
75 fi 95 fi
76 if [ "$CONFIG_GSM" = 1 -o "$CONFIG_L1_STANDALONE" = 1 ]
77 then
78 CONFIG_INCLUDE_L1=1
79 export_to_c CONFIG_INCLUDE_L1
80 export_to_mk CONFIG_INCLUDE_L1
81 fi
82
83 if [ "$CONFIG_INCLUDE_L1" = 1 -a "$TARGET" != gtamodem ] 96 if [ "$CONFIG_INCLUDE_L1" = 1 -a "$TARGET" != gtamodem ]
84 then 97 then
85 echo "Error: tpudrv has not been extended to target != gtamodem yet" \ 98 echo "Error: tpudrv has not been extended to target != gtamodem yet" \
86 1>&2 99 1>&2
87 exit 1 100 exit 1
90 # The list of build components: we have some invariants that are always 103 # The list of build components: we have some invariants that are always
91 # included, and some others that are included depending on the configuration. 104 # included, and some others that are included depending on the configuration.
92 105
93 BUILD_COMPONENTS="bsp nucleus riviera serial services sprintf sysglue" 106 BUILD_COMPONENTS="bsp nucleus riviera serial services sprintf sysglue"
94 107
95 if [ "$CONFIG_GPF" = 1 ] 108 if [ "$CONFIG_INCLUDE_GPF" = 1 ]
96 then 109 then
97 BUILD_COMPONENTS="$BUILD_COMPONENTS gpf" 110 BUILD_COMPONENTS="$BUILD_COMPONENTS gpf"
98 fi 111 fi
99 if [ "$CONFIG_INCLUDE_L1" = 1 ] 112 if [ "$CONFIG_INCLUDE_L1" = 1 ]
100 then 113 then