diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-29 16:49:06 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-29 16:49:58 +0100 |
commit | 534d1a92a156205e732a2ebd29809356048e86eb (patch) | |
tree | d888ddf3820e044c5be4d0cb77fc8e9a564e1c35 /mk | |
parent | 12904bcd1a36611c6494fbb02b94320322e75ed8 (diff) | |
download | embtoolkit-534d1a92a156205e732a2ebd29809356048e86eb.tar.gz embtoolkit-534d1a92a156205e732a2ebd29809356048e86eb.tar.bz2 embtoolkit-534d1a92a156205e732a2ebd29809356048e86eb.tar.xz |
Toolchain: check if cached toolchain tarball exists before using it
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/toolchain.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk index 2d7999e..35e97a4 100644 --- a/mk/toolchain.mk +++ b/mk/toolchain.mk @@ -177,12 +177,23 @@ define __embtk_toolchain_build $(if $(findstring core,$(1))$(findstring addons,$(1)), $(__embtk_toolchain_symlinktools) $(__embtk_toolchain_compress) + touch $(TOOLCHAIN_DIR)/.decompressed $(call embtk_pinfo,"New $(GNU_TARGET)/$(EMBTK_MCU_FLAG) toolchain successfully built!"), $(__embtk_toolchain_decompress)) endef -__embtk_toolchain_core_inst = $(strip $(if $(call __embtk_pkg_installed-y,toolchain),,core)) -__embtk_toolchain_addons_inst = $(strip $(if $(call __embtk_pkg_installed-y,toolchain_addons),,addons)) +define __embtk_toolchain_core_inst-y + $(and $(call __embtk_pkg_installed-y,toolchain), + $(call __embtk_mk_pathexist,$(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE))) +endef +__embtk_toolchain_core_inst = $(if $(strip $(__embtk_toolchain_core_inst-y)),,core) + +define __embtk_toolchain_addons_inst-y + $(and $(call __embtk_pkg_installed-y,toolchain_addons), + $(call __embtk_mk_pathexist,$(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE))) +endef +__embtk_toolchain_addons_inst = $(if $(strip $(__embtk_toolchain_addons_inst-y)),,addons) + __embtk_toolchain_buildargs = $(__embtk_toolchain_core_inst) __embtk_toolchain_buildargs += $(__embtk_toolchain_addons_inst) |