summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-07-03 21:57:58 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-07-03 21:57:58 +0200
commit186d858087e445956103d480443e44074fbe61a7 (patch)
treef53db04565aa4b6d65ccd6d7cc6bc254e188faf7
parent54b27402b3f8af276c283b4c901e529ea09b4b09 (diff)
downloadembtoolkit-186d858087e445956103d480443e44074fbe61a7.tar.gz
embtoolkit-186d858087e445956103d480443e44074fbe61a7.tar.bz2
embtoolkit-186d858087e445956103d480443e44074fbe61a7.tar.xz
Embtk: extract default dl/ directory from env
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--Kconfig6
-rw-r--r--Makefile15
2 files changed, 15 insertions, 6 deletions
diff --git a/Kconfig b/Kconfig
index 7ae59e7..e29f9b6 100644
--- a/Kconfig
+++ b/Kconfig
@@ -28,6 +28,10 @@ config EMBTK_DOTCONFIG
bool
default y
+config EMBTK_DEFAULT_DL
+ string
+ option env="EMBTK_DEFAULT_DL"
+
menu "Architecture/variants/options Selection"
source "kconfig/arch.kconfig"
source "kconfig/arch-variant.kconfig"
@@ -84,7 +88,7 @@ config EMBTK_NUMBER_BUILD_JOBS
config EMBTK_DOWNLOAD_DIR
string "Download directory"
- default "$(EMBTK_ROOT)/dl"
+ default $EMBTK_DEFAULT_DL
help
Directory where downloaded packages are stored.
diff --git a/Makefile b/Makefile
index 75ad2ce..657aeb1 100644
--- a/Makefile
+++ b/Makefile
@@ -84,21 +84,26 @@ All: $(EMBTK_BUILD)
xconfig: basic
ifeq ($(CONFIG_EMBTK_DOTCONFIG),y)
- $(Q)make -f scripts/Makefile.build obj=scripts/kconfig xconfig
+ $(Q)make -f scripts/Makefile.build obj=scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" xconfig
else
$(Q)if [ -e $(EMBTK_DOTCONFIG).old ]; then \
cp $(EMBTK_DOTCONFIG).old $(EMBTK_DOTCONFIG); \
- $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \
+ $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" xconfig; \
else \
- $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig; \
+ $(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" xconfig; \
fi
endif
menuconfig: basic
- $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig menuconfig
+ $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" menuconfig
randconfig: basic
- $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig randconfig
+ $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig \
+ EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" randconfig
basic:
$(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/basic