diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-23 21:17:12 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-23 21:17:12 +0200 |
commit | 7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5 (patch) | |
tree | 568a93b17068e7816a637acca1a028db9a340c5d | |
parent | a1c61a5c114b20bd9d161730bd93d16daff73d16 (diff) | |
download | embtoolkit-7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5.tar.gz embtoolkit-7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5.tar.bz2 embtoolkit-7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5.tar.xz |
Toolchain: rewrite root Makefile in order to use .config.old file
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |