diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-09-15 00:30:08 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-09-15 00:30:08 +0200 |
commit | 5b06078d2df2810d0f9404452588ce285715855d (patch) | |
tree | c5fab78c5363f6a1bd4a3bc545c9747ebe0055bc | |
parent | d3cbd97e9ee0e55a2f77a184034ac6406dbd0ce1 (diff) | |
download | embtoolkit-5b06078d2df2810d0f9404452588ce285715855d.tar.gz embtoolkit-5b06078d2df2810d0f9404452588ce285715855d.tar.bz2 embtoolkit-5b06078d2df2810d0f9404452588ce285715855d.tar.xz |
Toolhcain: tweak internal macros detecting if build of new toolchain is needed
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | core/toolchain/toolchain.mk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/toolchain/toolchain.mk b/core/toolchain/toolchain.mk index 5b9b194..b987df6 100644 --- a/core/toolchain/toolchain.mk +++ b/core/toolchain/toolchain.mk @@ -242,12 +242,18 @@ define __embtk_toolchain_build $(__embtk_toolchain_decompress)) endef -define __embtk_toolchain_runrecipe-y - $(or $(call __embtk_pkg_runrecipe-y,toolchain),$(if $(wildcard $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE)),,y)) +__embtk_toolchain_runrecipe-y = $(strip $(___embtk_toolchain_runrecipe-y)) +define ___embtk_toolchain_runrecipe-y + $(eval __xtool_changed-y := $(call __embtk_pkg_runrecipe-y,toolchain)) + $(eval __xtool_exists-y := $(if $(wildcard $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE)),,y)) + $(eval __xtool_runrecipe-y := $(or $(__xtool_changed-y),$(__xtool_exists-y)))$(__xtool_runrecipe-y) endef -define __embtk_toolchain_addons_runrecipe-y - $(or $(call __embtk_pkg_runrecipe-y,toolchain_addons),$(if $(wildcard $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE)),,y)) +__embtk_toolchain_addons_runrecipe-y = $(strip $(___embtk_toolchain_addons_runrecipe-y)) +define ___embtk_toolchain_addons_runrecipe-y + $(eval __xtool_addons_changed-y := $(call __embtk_pkg_runrecipe-y,toolchain_addons)) + $(eval __xtool_exists-y := $(if $(wildcard $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE)),,y)) + $(eval __xtool_runrecipe-y := $(or $(__xtool_addons_changed-y),$(__xtool_exists-y)))$(__xtool_runrecipe-y) endef __embtk_toolchain_buildargs = $(if $(strip $(__embtk_toolchain_runrecipe-y)),core-addons) |