summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-06 21:21:53 +0100
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-06 21:21:53 +0100
commitc37cefd9d10ea9c8f76b1716d4e3db5b5f187e43 (patch)
treef047a1af12e75fb97fbc4b7c6adb1fb28339baae
parent9927127f9b5dca4f649c073d31be09d78ed6273f (diff)
downloadembtoolkit-c37cefd9d10ea9c8f76b1716d4e3db5b5f187e43.tar.gz
embtoolkit-c37cefd9d10ea9c8f76b1716d4e3db5b5f187e43.tar.bz2
embtoolkit-c37cefd9d10ea9c8f76b1716d4e3db5b5f187e43.tar.xz
EMBTK: give ability to cache downloaded patches
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--Kconfig7
-rw-r--r--mk/initialpath.mk2
2 files changed, 9 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 4a97780..b6baf2f 100644
--- a/Kconfig
+++ b/Kconfig
@@ -103,5 +103,12 @@ config EMBTK_DOWNLOAD_DIR
But keep in mind that only a make distclean command will remove
downloaded packages in the default location under EmbToolkit,
not make clean.
+
+config EMBTK_CACHE_PATCHES
+ bool "Preserve first downloaded patches and do not download new one"
+ default y
+ help
+ When this option is enable, new patches for packages will not be
+ downloaded the second time you run the build process.
endmenu
diff --git a/mk/initialpath.mk b/mk/initialpath.mk
index c21b360..9dd1880 100644
--- a/mk/initialpath.mk
+++ b/mk/initialpath.mk
@@ -69,6 +69,8 @@ rmallpath:
@rm -Rf $(PACKAGES_BUILD) $(ROOTFS) $(TOOLS) $(TOOLS_BUILD) $(SYSROOT)
@rm -Rf rootfs-$(GNU_TARGET)-$(EMBTK_MCU_FLAG)*
@rm -Rf initramfs-$(GNU_TARGET)-$(EMBTK_MCU_FLAG)*
+ifneq ($(CONFIG_EMBTK_CACHE_PATCHES),y)
@rm -rf $(DOWNLOAD_DIR)/*.patch
+endif
@rm -rf $(DOWNLOAD_DIR)/eglibc-*