From 027c0cdcc13a8c0e9f48c7f5dcc4cb818bf9977b Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 16 Mar 2014 10:50:18 +0100 Subject: Toolchain: fix rebuild if changed Signed-off-by: Abdoulaye Walsimou Gaye --- toolchain/toolchain.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'toolchain') diff --git a/toolchain/toolchain.mk b/toolchain/toolchain.mk index 09fdb8f..63135ec 100644 --- a/toolchain/toolchain.mk +++ b/toolchain/toolchain.mk @@ -88,7 +88,9 @@ include mk/bmake.mk # GNU make include mk/gmake.mk -# Toolchain internals +# +# Toolchain virtual package internals +# __xtools_compiler-$(CONFIG_EMBTK_LLVM_ONLY_TOOLCHAIN) := clangllvm-$(LLVM_VERSION) __xtools_compiler-$(CONFIG_EMBTK_LLVM_DEFAULT_TOOLCHAIN) := clangllvm-$(LLVM_VERSION) __xtools_compiler-$(CONFIG_EMBTK_GCC_ONLY_TOOLCHAIN) := gcc-$(GCC_VERSION) @@ -258,8 +260,8 @@ define __embtk_toolchain_addons_runrecipe-y $(or $(call __embtk_pkg_runrecipe-y,toolchain_addons),$(if $(wildcard $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE)),,y)) endef -__embtk_toolchain_buildargs := $(if $(strip $(__embtk_toolchain_runrecipe-y)),core-addons) -__embtk_toolchain_buildargs +=$(if $(strip $(__embtk_toolchain_addons_runrecipe-y)),addons) +__embtk_toolchain_buildargs = $(if $(strip $(__embtk_toolchain_runrecipe-y)),core-addons) +__embtk_toolchain_buildargs += $(if $(strip $(__embtk_toolchain_addons_runrecipe-y)),addons) toolchain_install: $(Q)$(call __embtk_toolchain_build,$(__embtk_toolchain_buildargs)) @@ -283,3 +285,6 @@ TOOLCHAIN_ALL_DEPS := $(TOOLCHAIN_PRE_DEPS-y) $(TOOLCHAIN_DEPS) TOOLCHAIN_ALL_DEPS += $(TOOLCHAIN_ADDONS_DEPS) packages_fetch:: $(patsubst %_install,download_%,$(TOOLCHAIN_ALL_DEPS)) + +-include $(call __embtk_pkg_dotkconfig_f,toolchain) +-include $(call __embtk_pkg_dotkconfig_f,toolchain_addons) -- cgit v1.2.3