From ea23f34e25839a9559c3bb61cc5d9f54c89e137b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Wed, 13 Jul 2011 01:07:45 +0200 Subject: toolchain/crosstool-ng: allow pre-downloading the sources On "make source", just download the required sources, and do not build the entire toolchain. This requires a new patch against crosstool-NG (got from upstream). The "uclibc-source" rule requires an installed and configured crosstool-NG, so it has to be after the variables declaration. For consistency, move down the main rule "uclibc". Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- toolchain/toolchain-crosstool-ng/crosstool-ng.mk | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'toolchain/toolchain-crosstool-ng/crosstool-ng.mk') diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk index 2d1b51c68..d3fcc65ff 100644 --- a/toolchain/toolchain-crosstool-ng/crosstool-ng.mk +++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.mk @@ -5,11 +5,6 @@ # crosstool-NG as a backend is but a kind of external toolchains, # except that it is not pre-built. -#----------------------------------------------------------------------------- -# 'uclibc' is the target to depend on to get the toolchain and prepare -# the staging directory and co. -uclibc: dependencies $(STAMP_DIR)/ct-ng-toolchain-installed - #----------------------------------------------------------------------------- # Internal variables @@ -32,6 +27,18 @@ define ctng PATH=$(HOST_PATH) $(CTNG_DIR)/ct-ng -C $(CTNG_DIR) --no-print-directory $(1) endef +#----------------------------------------------------------------------------- +# 'uclibc' is the target to depend on to get the toolchain and prepare +# the staging directory and co. +uclibc: dependencies $(STAMP_DIR)/ct-ng-toolchain-installed + +# 'uclibc-source' is the target used by the infra structure to mean +# "we just want to download the toolchain's sources, not build it" +# For crosstool-NG, we need it to be configured before we can download; +# then we have to override a config option to just do the download +uclibc-source: $(CTNG_DIR)/.config + $(Q)$(call ctng,build CT_ONLY_DOWNLOAD=y) + #----------------------------------------------------------------------------- # Installing the libs to target/ and staging/ -- cgit v1.2.3