From b68447fed536abc1a686ab3b00a47b091f4641bb Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 16 Sep 2014 23:43:02 +0200 Subject: Toolchain: move install of predeps to common place Signed-off-by: Abdoulaye Walsimou Gaye --- core/toolchain/common.mk | 1 - core/toolchain/core.mk | 3 --- core/toolchain/toolchain.mk | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/toolchain/common.mk b/core/toolchain/common.mk index a69f851..5270d3a 100644 --- a/core/toolchain/common.mk +++ b/core/toolchain/common.mk @@ -104,5 +104,4 @@ define ___embtk_toolchain_decompress rm -rf $(embtk_sysroot) $(embtk_tools) cd $(embtk_generated) && tar xjf $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE) $(__embtk_toolchain_mkinitdirs) - $(MAKE) $(EMBTK_TOOLCHAIN_PREDEPS-y) endef diff --git a/core/toolchain/core.mk b/core/toolchain/core.mk index 60620c3..f010001 100644 --- a/core/toolchain/core.mk +++ b/core/toolchain/core.mk @@ -58,7 +58,6 @@ endif # # Toolchain core build recipe # -__embtk_toolchain_predeps-y = $(patsubst %_install,%,$(EMBTK_TOOLCHAIN_PREDEPS-y)) __embtk_toolchain_deps-y = $(patsubst %_install,%,$(EMBTK_TOOLCHAIN_DEPS-y)) __embtk_toolchain_built_msg = $(call embtk_pinfo,"New $(GNU_TARGET)/$(EMBTK_MCU_FLAG) toolchain successfully built!") __embtk_toolchain_building_msg = $(call embtk_pinfo,"Building new $(GNU_TARGET)/$(EMBTK_MCU_FLAG) CORE toolchain - please wait...") @@ -75,8 +74,6 @@ define __embtk_toolchain_core_build $(call embtk_cleanup_pkg,$(pkgn))) rm -rf $(embtk_sysroot) $(embtk_tools) $(__embtk_toolchain_mkinitdirs) - $(foreach pdep,$(__embtk_toolchain_predeps-y), - $(call embtk_install_xpkg,$(pdep))) $(foreach dep,$(__embtk_toolchain_deps-y), $(call embtk_install_xpkg,$(dep))) $(call __embtk_setinstalled_pkg,toolchain) diff --git a/core/toolchain/toolchain.mk b/core/toolchain/toolchain.mk index 4778157..9f361a6 100644 --- a/core/toolchain/toolchain.mk +++ b/core/toolchain/toolchain.mk @@ -39,10 +39,13 @@ include packages/htools/automake/vars.mk include core/toolchain/core.mk include core/toolchain/addons.mk +__embtk_toolchain_predeps-y = $(patsubst %_install,%,$(EMBTK_TOOLCHAIN_PREDEPS-y)) define __embtk_toolchain_build $(eval __xtool_build := $(if $(__embtk_toolchain_runrecipe-y),core)) $(eval __xtool_addons_build := $(if $(__embtk_toolchain_addons_runrecipe-y),addons)) $(eval __xtool_build_args := $(strip $(__xtool_build) $(__xtool_addons_build))) + $(__embtk_toolchain_mkinitdirs) + $(foreach pdep,$(__embtk_toolchain_predeps-y),$(call embtk_install_xpkg,$(pdep))) $(if $(__xtool_build), $(call __embtk_toolchain_core_build,$(__xtool_build_args))) $(if $(__xtool_addons_build), -- cgit v1.2.3