summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-02 08:51:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-02 08:53:47 +0100
commitf06aece697aeab98f44c6ad0017e87e36c8ae764 (patch)
tree2dbfa60819b6fae3358eb997d41826940424f4c7 /mk
parentfcfd8fdbd759d500a5b585e58fade1bd74801c49 (diff)
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.
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk6
-rw-r--r--mk/toolchain.mk4
2 files changed, 5 insertions, 5 deletions
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)