diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-03 13:35:26 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-03 13:35:45 +0200 |
commit | 47ef38d20ded8b81f25f7e63ff4e915145f5a615 (patch) | |
tree | db714fbe1b0590c8d5d5b63006cecf3fc4bd7fab /Makefile | |
parent | 0c550c2f134b1d3b7d3941fd12e19c15e4b9556a (diff) | |
download | embtoolkit-47ef38d20ded8b81f25f7e63ff4e915145f5a615.tar.gz embtoolkit-47ef38d20ded8b81f25f7e63ff4e915145f5a615.tar.bz2 embtoolkit-47ef38d20ded8b81f25f7e63ff4e915145f5a615.tar.xz |
Build system: create EMBTK_DOTCONFIG helper variable
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; \ |