summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-08-18 20:44:06 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-08-18 20:44:06 +0200
commitd1a0a267af8e304ff1fa92942ae779c6c61ebe14 (patch)
treea476b309ab6de2500aa6d8fd9502e76c8d1207a1 /mk
parent293c4218e2cf1c15b777d3fe2e91b78ee9c621f2 (diff)
downloadembtoolkit-d1a0a267af8e304ff1fa92942ae779c6c61ebe14.tar.gz
embtoolkit-d1a0a267af8e304ff1fa92942ae779c6c61ebe14.tar.bz2
embtoolkit-d1a0a267af8e304ff1fa92942ae779c6c61ebe14.tar.xz
Build system: import kconfig from upstream 20fb1936dee63fe397236d4ff3fd253a62b7b0b8
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/buildsystem.mk40
1 files changed, 22 insertions, 18 deletions
diff --git a/mk/buildsystem.mk b/mk/buildsystem.mk
index 80a8d51..fa6a1bc 100644
--- a/mk/buildsystem.mk
+++ b/mk/buildsystem.mk
@@ -36,34 +36,38 @@ J := -j$(CONFIG_EMBTK_NUMBER_BUILD_JOBS)
xconfig: basic
ifeq ($(CONFIG_EMBTK_DOTCONFIG),y)
- $(Q)make -f scripts/Makefile.build obj=scripts/kconfig \
- EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
- EMBTK_VERSION=$(EMBTK_VERSION) xconfig
+ $(Q)$(MAKE) -f scripts/Makefile.build obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
+ EMBTK_VERSION=$(EMBTK_VERSION) xconfig
else
$(Q)if [ -e $(EMBTK_DOTCONFIG).old ]; then \
cp $(EMBTK_DOTCONFIG).old $(EMBTK_DOTCONFIG); \
- make -f scripts/Makefile.build obj=scripts/kconfig \
- EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
- EMBTK_VERSION=$(EMBTK_VERSION) xconfig; \
+ $(MAKE) -f scripts/Makefile.build \
+ obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
+ EMBTK_VERSION=$(EMBTK_VERSION) xconfig; \
else \
- make -f scripts/Makefile.build obj=scripts/kconfig \
- EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
- EMBTK_VERSION=$(EMBTK_VERSION) xconfig; \
+ $(MAKE) -f scripts/Makefile.build \
+ obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
+ EMBTK_VERSION=$(EMBTK_VERSION) xconfig; \
fi
endif
menuconfig: basic
- $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
- EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
- EMBTK_VERSION=$(EMBTK_VERSION) menuconfig
+ $(Q)$(MAKE) -f scripts/Makefile.build \
+ obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
+ EMBTK_VERSION=$(EMBTK_VERSION) menuconfig
randconfig: basic
- $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
- EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
- EMBTK_VERSION=$(EMBTK_VERSION) randconfig
+ $(Q)$(MAKE) -f scripts/Makefile.build \
+ obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
+ EMBTK_VERSION=$(EMBTK_VERSION) randconfig
basic:
- $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/basic
+ $(Q)$(MAKE) -f scripts/Makefile.build obj=$(EMBTK_ROOT)/scripts/basic
clean: toolchain_clean rmallpath
$(Q)$(__embtk_kconfig_clean)
@@ -148,8 +152,8 @@ define __embtk_mk_inithosttoolsdirs
endef
define __embtk_kconfig_clean
- $(MAKE) -f scripts/Makefile.clean obj=scripts/kconfig
- $(MAKE) -f scripts/Makefile.clean obj=scripts/basic
+ $(MAKE) -f scripts/Makefile.clean obj=$(EMBTK_ROOT)/scripts/kconfig
+ $(MAKE) -f scripts/Makefile.clean obj=$(EMBTK_ROOT)/scripts/basic
rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'config*')
rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'lex.*.c')
rm -rf $$(find $(EMBTK_ROOT)/scripts/kconfig -type f -name 'zconf.lex.c')