From 7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 23 May 2009 21:17:12 +0200 Subject: Toolchain: rewrite root Makefile in order to use .config.old file Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 71aadbb..5421c04 100644 --- a/Makefile +++ b/Makefile @@ -63,13 +63,22 @@ endif ifeq ($(CONFIG_EMBTK_DOTCONFIG),) EMBTK_BUILD := xconfig else -EMBTK_BUILD := +EMBTK_BUILD := startbuild endif All: $(EMBTK_BUILD) 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)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ + else \ + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \ + fi +endif menuconfig: basic $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig menuconfig @@ -82,7 +91,7 @@ clean: rmallpath $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/basic $(Q)rm -rf .config kbuild.log -startbuild: mkinitialpath buildtoolchain buildrootfs +startbuild: buildtoolchain include mk/macros.mk include mk/target-mcu.mk -- cgit v1.2.3