[source] toolchain/gcc: parallelize make install

LEDE Commits lede-commits at lists.infradead.org
Thu Feb 9 05:49:41 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/0f5d17a7e6acceb18867fd951b231bfb6c4d8946

commit 0f5d17a7e6acceb18867fd951b231bfb6c4d8946
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Feb 9 13:35:07 2017 +0100

    toolchain/gcc: parallelize make install
    
    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 at nbd.name>
---
 toolchain/gcc/final/Makefile   | 2 +-
 toolchain/gcc/initial/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile
index 01fec38..b815f67 100644
--- a/toolchain/gcc/final/Makefile
+++ b/toolchain/gcc/final/Makefile
@@ -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); \
diff --git a/toolchain/gcc/initial/Makefile b/toolchain/gcc/initial/Makefile
index 1ed5484..c71b17d 100644
--- a/toolchain/gcc/initial/Makefile
+++ b/toolchain/gcc/initial/Makefile
@@ -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



More information about the lede-commits mailing list