diff options
-rw-r--r-- | Kconfig | 7 | ||||
-rw-r--r-- | mk/initialpath.mk | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -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-* |