diff 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
line wrap: on
line diff
--- a/gsm-fw/cfgmagic/processconf.sh	Mon Sep 01 19:34:31 2014 +0000
+++ b/gsm-fw/cfgmagic/processconf.sh	Wed Sep 03 16:03:38 2014 +0000
@@ -22,6 +22,26 @@
 FLASH_BOOT_VIA_BOOTROM=1
 FLASHIMAGE_BASE_ADDR=0x2000
 
+# We always export CONFIG_INCLUDE_xxx to config.h and config.mk, whether
+# enabled or disabled.  This way enabling any of these components is
+# as simple as CONFIG_INCLUDE_xxx=1, without having to remember the
+# export_to_{c,mk} magic.
+CONFIG_INCLUDE_CCD=0
+export_to_c	CONFIG_INCLUDE_CCD
+export_to_mk	CONFIG_INCLUDE_CCD
+CONFIG_INCLUDE_GPF=0
+export_to_c	CONFIG_INCLUDE_GPF
+export_to_mk	CONFIG_INCLUDE_GPF
+CONFIG_INCLUDE_L1=0
+export_to_c	CONFIG_INCLUDE_L1
+export_to_mk	CONFIG_INCLUDE_L1
+CONFIG_INCLUDE_PCM=0
+export_to_c	CONFIG_INCLUDE_PCM
+export_to_mk	CONFIG_INCLUDE_PCM
+CONFIG_INCLUDE_SIM=0
+export_to_c	CONFIG_INCLUDE_SIM
+export_to_mk	CONFIG_INCLUDE_SIM
+
 . ./build.conf
 
 if [ -z "$TARGET" ]
@@ -73,13 +93,6 @@
 		1>&2
 	exit 1
 fi
-if [ "$CONFIG_GSM" = 1 -o "$CONFIG_L1_STANDALONE" = 1 ]
-then
-	CONFIG_INCLUDE_L1=1
-	export_to_c	CONFIG_INCLUDE_L1
-	export_to_mk	CONFIG_INCLUDE_L1
-fi
-
 if [ "$CONFIG_INCLUDE_L1" = 1 -a "$TARGET" != gtamodem ]
 then
 	echo "Error: tpudrv has not been extended to target != gtamodem yet" \
@@ -92,7 +105,7 @@
 
 BUILD_COMPONENTS="bsp nucleus riviera serial services sprintf sysglue"
 
-if [ "$CONFIG_GPF" = 1 ]
+if [ "$CONFIG_INCLUDE_GPF" = 1 ]
 then
 	BUILD_COMPONENTS="$BUILD_COMPONENTS gpf"
 fi