From f06aece697aeab98f44c6ad0017e87e36c8ae764 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 2 Dec 2015 08:51:13 +0100 Subject: simplify toolchain building Buildroot uses the two-stage mechanism since a while. This reduces the build time a lot. Instead of three stages, we just use the two-stage build. The benefit is that the C library do not need to be rebuild and one gcc compile is obsolete. Tested with embedded-test.sh. There is one unresolved problem, tile toolchain building is broken. --- mk/build.mk | 6 +++--- mk/toolchain.mk | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mk') diff --git a/mk/build.mk b/mk/build.mk index 52b56cb78..24a02101c 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -173,12 +173,12 @@ world: ${BASH} ${ADK_TOPDIR}/scripts/scan-pkgs.sh ifeq ($(ADK_TARGET_TOOLCHAIN),y) ifeq ($(ADK_TOOLCHAIN_ONLY),y) - $(MAKE) -f mk/build.mk package/hostcompile toolchain/fixup package/compile + $(MAKE) -f mk/build.mk package/hostcompile toolchain/final package/compile else - $(MAKE) -f mk/build.mk package/hostcompile toolchain/fixup package/compile root_clean package/install + $(MAKE) -f mk/build.mk package/hostcompile toolchain/final package/compile root_clean package/install endif else - $(MAKE) -f mk/build.mk package/hostcompile toolchain/fixup target/config-prepare target/compile package/compile root_clean package/install target/install package_index + $(MAKE) -f mk/build.mk package/hostcompile toolchain/final target/config-prepare target/compile package/compile root_clean package/install target/install package_index endif package_index: diff --git a/mk/toolchain.mk b/mk/toolchain.mk index 80860a0f1..7959e9a8e 100644 --- a/mk/toolchain.mk +++ b/mk/toolchain.mk @@ -1,7 +1,7 @@ -prepare: ${WRKDIST}/.prepared $(WRKBUILD)/.headers +prepare: ${WRKDIST}/.prepared configure: ${WRKBUILD}/.configured compile: $(WRKBUILD)/.compiled install: $(WRKBUILD)/.installed -fixup: $(WRKBUILD)/.fixup +final: $(WRKBUILD)/.final clean: rm -rf $(WRKDIR) -- cgit v1.2.3