summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-23 21:17:12 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-23 21:17:12 +0200
commit7b60e37f5074b7ddd9b4f12cf9df70f170c6fbc5 (patch)
tree568a93b17068e7816a637acca1a028db9a340c5d /Makefile
parenta1c61a5c114b20bd9d161730bd93d16daff73d16 (diff)
downloadembtoolkit-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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files 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