gcc: enable parallel builds
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 Sep 2012 14:18:19 +0000 (14:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 15 Sep 2012 14:18:19 +0000 (14:18 +0000)
SVN-Revision: 33444

toolchain/gcc/common.mk
toolchain/gcc/final/Makefile
toolchain/gcc/initial/Makefile
toolchain/gcc/minimal/Makefile

index ac427c35d7d88ac53f734065fd7209265d8a0a46..c18a330f343ed16e165a2e43b6118b9266a051aa 100644 (file)
@@ -79,6 +79,8 @@ PATCH_DIR=../patches/$(GCC_VERSION)
 
 BUGURL=https://dev.openwrt.org/
 
+HOST_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/toolchain-build.mk
 
 HOST_SOURCE_DIR:=$(HOST_BUILD_DIR)
index 59a5b2497c12201ea4acd5d125e3fde38fb71fe8..d9624d0673eb80376aa71539f4e029cc452d4efa 100644 (file)
@@ -47,7 +47,7 @@ define Host/Configure
 endef
 
 define Host/Compile
-       $(GCC_MAKE) -C $(GCC_BUILD_DIR) all
+       $(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all
 endef
 
 define SetupExtraArch
index 6b0536d83a2c9e99e2e473b720e3daa07a30d8d7..319a064cb1d9d363e022507373cac28ca614d989 100644 (file)
@@ -11,7 +11,7 @@ GCC_CONFIGURE += \
 
 define Host/Compile
        $(CP) $(BUILD_DIR_TOOLCHAIN)/linux-dev/* $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/
-       $(GCC_MAKE) -C $(GCC_BUILD_DIR) \
+       $(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
                all-build-libiberty \
                all-gcc \
                $(if $(GCC_BUILD_TARGET_LIBGCC),all-target-libgcc)
index 45c8993ecb661ce47ca5056a5d8c52e31470acdf..2869ed5bf1bb8dbac173191f85b6986222fb7f17 100644 (file)
@@ -30,7 +30,7 @@ define Host/Prepare
 endef
 
 define Host/Compile
-       $(GCC_MAKE) -C $(GCC_BUILD_DIR) all-gcc all-target-libgcc
+       $(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all-gcc all-target-libgcc
 endef
 
 define Host/Install