From 47ef38d20ded8b81f25f7e63ff4e915145f5a615 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 3 Jul 2011 13:35:26 +0200 Subject: Build system: create EMBTK_DOTCONFIG helper variable Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d51548e..02f131f 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,9 @@ export EMBTK_BUGURL EMBTK_HOMEURL EMBTK_ROOT := $(shell pwd) export EMBTK_ROOT +EMBTK_DOTCONFIG := $(EMBTK_ROOT)/.config +export EMBTK_DOTCONFIG + # SHELL used by kbuild CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ @@ -83,8 +86,8 @@ xconfig: basic ifeq ($(CONFIG_EMBTK_DOTCONFIG),y) $(Q)make -f scripts/Makefile.build obj=scripts/kconfig xconfig else - @if [ -e $(EMBTK_ROOT)/.config.old ]; then \ - cp $(EMBTK_ROOT)/.config.old $(EMBTK_ROOT)/.config; \ + $(Q)if [ -e $(EMBTK_DOCONFIG).old ]; then \ + cp $(EMBTK_DOCONFIG).old $(EMBTK_DOCONFIG); \ $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ else \ $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ -- cgit v1.2.3