diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-19 22:29:49 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-19 22:29:49 +0200 |
commit | 2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685 (patch) | |
tree | f80f713a23dac9ce506ce7423b5a5206ed04755d /ct-ng.in | |
parent | c4bb88466eba7f25ab23f71859a8cff43b30f62c (diff) | |
download | crosstool-ng-2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685.tar.gz crosstool-ng-2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685.tar.bz2 crosstool-ng-2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685.zip |
scripts: munge .config to handle array variables
Transfrom array variables from pure strings (in the kconfig output)
into proper bash arrays declarations, for feeding to the build scripts.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'ct-ng.in')
-rw-r--r-- | ct-ng.in | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -135,11 +135,16 @@ help-env:: @echo "or configure an existing sample." @false -show-tuple: .config +.config.2: .config + $(SILENT)$(sed) -r -e 's/^([^=]+_ARRAY)="(.*)"$$/\1=( \2 )/;' \ + -e '/^[^=]+_ARRAY=/s/\\(.)/\1/g;' \ + $< >$@ + +show-tuple: .config.2 $(SILENT)$(bash) $(CT_LIB_DIR)/scripts/showTuple.sh # Actual build -build: .config +build: .config.2 $(SILENT)$(CT_LIB_DIR)/scripts/crosstool-NG.sh build.%: |