summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-05-19 20:29:49 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-05-19 20:29:49 (GMT)
commit2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685 (patch)
treef80f713a23dac9ce506ce7423b5a5206ed04755d /ct-ng.in
parentc4bb88466eba7f25ab23f71859a8cff43b30f62c (diff)
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.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 0233622..096e134 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -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.%: