From 2c3b6d2b71c3a9bcbef5157ec9eb4217b25cf685 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 19 May 2011 22:29:49 +0200 Subject: scripts: munge .config to handle array variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" Signed-off-by: "Benoît THÉBAUDEAU" --- ct-ng.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ct-ng.in') diff --git a/ct-ng.in b/ct-ng.in index 0233622d..096e1343 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.%: -- cgit v1.2.3