toolchain/gcc: parallelize make install
authorFelix Fietkau <nbd@nbd.name>
Thu, 9 Feb 2017 12:35:07 +0000 (13:35 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 13:22:36 +0000 (14:22 +0100)
If the staging dir was deleted, the build needs to recompile some files.
This change speeds up this corner case significantly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 0f5d17a7e6acceb18867fd951b231bfb6c4d8946)

toolchain/gcc/final/Makefile
toolchain/gcc/initial/Makefile

index 01fec380273752d01c10046f476f785ec34b92aa..b815f677d669c8cac479d365f52449f64564637c 100644 (file)
@@ -67,7 +67,7 @@ endef
 
 define Host/Install
        $(CleanupToolchain)
-       $(_SINGLE)$(GCC_MAKE) -C $(GCC_BUILD_DIR) install
+       +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) install
        # Set up the symlinks to enable lying about target name.
        set -e; \
        (cd $(TOOLCHAIN_DIR); \
index 1ed548436ea26eaa1a54ea623f9c3dd663e51299..c71b17dd87b105963987b25babbcbad539c6708f 100644 (file)
@@ -18,7 +18,7 @@ define Host/Compile
 endef
 
 define Host/Install
-       $(GCC_MAKE) -C $(GCC_BUILD_DIR) \
+       +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
                prefix="$(TOOLCHAIN_DIR)/initial" \
                install-gcc \
                install-target-libgcc