summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-09-26 11:25:39 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-09-26 11:25:39 +0200
commita2db5ce0928a1b8faeaba7a382491c7d7f6f3ffd (patch)
tree72999a10e1a4894615fe72eafb11691e5c2b8c27 /mk
parentbe6008a5106eb4c09db20b7ad31e0777aa5479d0 (diff)
downloadembtoolkit-a2db5ce0928a1b8faeaba7a382491c7d7f6f3ffd.tar.gz
embtoolkit-a2db5ce0928a1b8faeaba7a382491c7d7f6f3ffd.tar.bz2
embtoolkit-a2db5ce0928a1b8faeaba7a382491c7d7f6f3ffd.tar.xz
Give ability to specify an alternate location for downloaded packages
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/initialpath.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/initialpath.mk b/mk/initialpath.mk
index bab8c4a..a334044 100644
--- a/mk/initialpath.mk
+++ b/mk/initialpath.mk
@@ -29,8 +29,9 @@ TOOLS_BUILD:=$(EMBTK_ROOT)/build/tools_build-$(GNU_TARGET)-$(EMBTK_MCU_FLAG)
PACKAGES_BUILD:=$(EMBTK_ROOT)/build/packages_build-$(GNU_TARGET)-$(EMBTK_MCU_FLAG)
ROOTFS:=$(EMBTK_ROOT)/rootfs-$(GNU_TARGET)-$(EMBTK_MCU_FLAG)
HOSTTOOLS :=$(EMBTK_ROOT)/host-tools-$(EMBTK_MCU_FLAG)
+DOWNLOAD_DIR := $(subst ",,$(strip $(CONFIG_EMBTK_DOWNLOAD_DIR)))
-export SYSROOT TOOLS TOOLS_BUILD PACKAGES_BUILD ROOTFS HOSTTOOLS
+export SYSROOT TOOLS TOOLS_BUILD PACKAGES_BUILD ROOTFS HOSTTOOLS DOWNLOAD_DIR
mkinitialpath:
@mkdir -p $(SYSROOT)
@@ -65,6 +66,6 @@ ifeq ($(CONFIG_EMBTK_HAVE_ROOTFS),y)
endif
rmallpath:
- @rm -Rf build rootfs-* sysroot-* tools-* $(DOWNLOAD_DIR)/eglibc* \
- initramfs-*
+ @rm -Rf build rootfs-* sysroot-* tools-* initramfs-*
+ @rm -Rf $(EMBTK_ROOT)/dl/*