FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/cfgmagic/processconf.sh @ 1021:8b52011dc66a
doc/Pirelli-Howto: update for the current situation
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 23 Apr 2016 06:19:09 +0000 |
parents | 042c178ebac5 |
children |
rev | line source |
---|---|
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #!/bin/sh |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # The top level Makefile invokes this Bourne shell script after ensuring |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 # that the build.conf file is present. The job of this script is to grok |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 # that configuration file and to produce include/config.{h,mk,m4} files |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 # corresponding to the selected configuration. |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 # |
207
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
7 # The current directory is expected to be the top level of gsm-fw, i.e., |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 # all fragments are sourced as cfgmagic/blah. |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 # Don't run this script directly - let the Makefile do it for you. |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 set -e |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 . cfgmagic/functions |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 TARGET= |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 c_export_list= |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 mk_export_list= |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 m4_export_list= |
942
042c178ebac5
gsm-fw/cfgmagic: logic for target-dependent features streamlined a little
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
924
diff
changeset
|
17 target_feature_list= |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 |
122 | 19 # some defaults |
207
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
20 FFS_IN_RAM=1 |
122 | 21 RVTMUX_UART_port=IrDA |
22 RVTMUX_UART_baud=115200 | |
512
6f4cadd1fd7f
gsm-fw/cfgmagic: beginning of Compal target support
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
489
diff
changeset
|
23 FLASH_BOOT_VIA_BOOTROM=1 |
630
4cd1dcc167e4
gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
624
diff
changeset
|
24 FLASHIMAGE_BASE_ADDR=0x2000 |
924
aac4d4b15d2f
gsm-fw: static DSP patch download enabled by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
898
diff
changeset
|
25 DWNLD=1 |
898
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
26 L1_DYN_DSP_DWNLD=0 |
122 | 27 |
637
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
28 # We always export CONFIG_INCLUDE_xxx to config.h and config.mk, whether |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
29 # enabled or disabled. This way enabling any of these components is |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
30 # as simple as CONFIG_INCLUDE_xxx=1, without having to remember the |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
31 # export_to_{c,mk} magic. |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
32 CONFIG_INCLUDE_GPF=0 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
33 export_to_c CONFIG_INCLUDE_GPF |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
34 export_to_mk CONFIG_INCLUDE_GPF |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
35 CONFIG_INCLUDE_L1=0 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
36 export_to_c CONFIG_INCLUDE_L1 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
37 export_to_mk CONFIG_INCLUDE_L1 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
38 CONFIG_INCLUDE_PCM=0 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
39 export_to_c CONFIG_INCLUDE_PCM |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
40 export_to_mk CONFIG_INCLUDE_PCM |
671
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
41 CONFIG_INCLUDE_PS=0 |
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
42 export_to_c CONFIG_INCLUDE_PS |
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
43 export_to_mk CONFIG_INCLUDE_PS |
637
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
44 CONFIG_INCLUDE_SIM=0 |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
45 export_to_c CONFIG_INCLUDE_SIM |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
46 export_to_mk CONFIG_INCLUDE_SIM |
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
47 |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 . ./build.conf |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 if [ -z "$TARGET" ] |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 then |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 echo "Error: target not set in build.conf" 1>&2 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 exit 1 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 fi |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 |
122 | 56 # Serial configuration |
57 case "$RVTMUX_UART_port" in | |
58 IrDA) | |
865
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
59 CONFIG_LLDBG_UART_BASE=0xFFFF5000 |
122 | 60 ;; |
61 MODEM) | |
865
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
62 CONFIG_LLDBG_UART_BASE=0xFFFF5800 |
122 | 63 CONFIG_RVTMUX_ON_MODEM=1 |
64 export_to_c CONFIG_RVTMUX_ON_MODEM | |
65 ;; | |
66 *) | |
207
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
67 echo "Error: unknown RVTMUX_UART_port=$RVTMUX_UART_port" 1>&2 |
122 | 68 exit 1 |
69 ;; | |
70 esac | |
71 | |
72 TR_BAUD_CONFIG=TR_BAUD_$RVTMUX_UART_baud | |
73 export_to_c TR_BAUD_CONFIG | |
74 | |
207
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
75 # FFS in RAM |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
76 export_to_c FFS_IN_RAM |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
77 export_to_m4 FFS_IN_RAM |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
78 if [ $FFS_IN_RAM = 1 ] |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
79 then |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
80 if [ -z "$RAMFFS_BLKSIZE_LOG2" -o -z "$RAMFFS_NBLOCKS" ] |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
81 then |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
82 echo \ |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
83 "Error: RAMFFS_BLKSIZE_LOG2 and RAMFFS_NBLOCKS need to be defined" 1>&2 |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
84 exit 1 |
c70c077243dd
gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
167
diff
changeset
|
85 fi |
524
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
86 export_to_c RAMFFS_BLKSIZE_LOG2 RAMFFS_NBLOCKS |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
87 export_to_m4 RAMFFS_BLKSIZE_LOG2 RAMFFS_NBLOCKS |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
88 fi |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
89 |
630
4cd1dcc167e4
gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
624
diff
changeset
|
90 # Sane vs. Compal target differences for flash boot |
4cd1dcc167e4
gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
624
diff
changeset
|
91 export_to_c FLASH_BOOT_VIA_BOOTROM |
4cd1dcc167e4
gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
624
diff
changeset
|
92 export_to_m4 FLASH_BOOT_VIA_BOOTROM FLASHIMAGE_BASE_ADDR |
4cd1dcc167e4
gsm-fw/cfgmagic: preparations for building flash images (sane vs. Compal)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
624
diff
changeset
|
93 |
524
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
94 # L1 configuration |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
95 if [ "$CONFIG_GSM" = 1 -a "$CONFIG_L1_STANDALONE" = 1 ] |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
96 then |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
97 echo "Error: feature gsm and feature l1stand are mutually exclusive" \ |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
98 1>&2 |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
99 exit 1 |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
100 fi |
898
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
101 if [ "$CONFIG_INCLUDE_L1" = 1 ] |
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
102 then |
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
103 export_to_c L1_DYN_DSP_DWNLD DWNLD |
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
104 export_to_mk L1_DYN_DSP_DWNLD |
cc9d97d0e911
gsm-fw: DWNLD (static DSP patch) and L1_DYN_DSP_DWNLD moved to config mechanism
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
887
diff
changeset
|
105 fi |
624
407c20f90f6a
gsm-fw/cfgmagic/processconf.sh: guard against building L1 for target != gtamodem
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
524
diff
changeset
|
106 |
489
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
107 # The list of build components: we have some invariants that are always |
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
108 # included, and some others that are included depending on the configuration. |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
109 |
860
cbc49d533b7d
gsm-fw: new implementation of bzero() and some specialized bcopy variants
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
842
diff
changeset
|
110 BUILD_COMPONENTS="bsp libiram nucleus riviera serial services sprintf sysglue" |
489
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
111 |
637
0677a6fbb8b6
gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
630
diff
changeset
|
112 if [ "$CONFIG_INCLUDE_GPF" = 1 ] |
489
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
113 then |
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
114 BUILD_COMPONENTS="$BUILD_COMPONENTS gpf" |
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
115 fi |
524
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
116 if [ "$CONFIG_INCLUDE_L1" = 1 ] |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
117 then |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
118 BUILD_COMPONENTS="$BUILD_COMPONENTS L1" |
11b6ca57a079
gsm-fw/cfgmagic: first rough sketch at L1 configuration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
512
diff
changeset
|
119 fi |
671
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
120 if [ "$CONFIG_INCLUDE_PS" = 1 ] |
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
121 then |
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
122 BUILD_COMPONENTS="$BUILD_COMPONENTS ccd comlib" |
842
a862a41f26b7
gsm-fw/cfgmagic/processconf.sh: g23m-glue added to the build for GSM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
828
diff
changeset
|
123 BUILD_COMPONENTS="$BUILD_COMPONENTS g23m-aci g23m-glue g23m-gsm" |
671
210268d8e553
gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
658
diff
changeset
|
124 fi |
865
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
125 if [ "$CONFIG_LLDBG" = 1 ] |
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
126 then |
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
127 BUILD_COMPONENTS="$BUILD_COMPONENTS lldbg" |
f5affe83ba2d
lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
860
diff
changeset
|
128 fi |
489
2a26785fb5a2
gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
207
diff
changeset
|
129 |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
130 export_to_mk BUILD_COMPONENTS |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
131 |
828
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
132 # The default build image type depends on the target and features |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
133 if [ -f "cfgmagic/defimage.$TARGET" ] |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
134 then |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
135 . "cfgmagic/defimage.$TARGET" |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
136 else |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
137 BUILD_DEFAULT_IMAGE=ramImage |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
138 fi |
a8d0bbba7886
build flashable images by default when PS is included and target has small RAM
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
822
diff
changeset
|
139 |
88
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
140 export_to_mk BUILD_DEFAULT_IMAGE |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
141 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
142 # Now generate the output files! |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
143 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
144 parse_export_list() { |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
145 for var in $1 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
146 do |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
147 eval "value=\"\$$var\"" |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
148 emit_def "$var" "$value" |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
149 done |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
150 } |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
151 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
152 # make config.h |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
153 emit_def() { |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
154 echo "#define $1 $2" >> include/config.h |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
155 } |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
156 : > include/config.h |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
157 parse_export_list "$c_export_list" |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
158 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
159 # make config.mk |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
160 emit_def() { |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
161 echo "$1= $2" >> include/config.mk |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
162 } |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
163 : > include/config.mk |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
164 parse_export_list "$mk_export_list" |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
165 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
166 # make config.m4 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
167 emit_def() { |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
168 echo 'define(`'"$1'"',`'"$2')dnl" >> include/config.m4 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
169 } |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
170 : > include/config.m4 |
ccde45a06737
nuc-fw: beginning of the configuration mechanism
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
171 parse_export_list "$m4_export_list" |