aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-15 14:18:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-15 14:18:19 +0000
commitd6c584651368d4d37c789a23dc54fb6056e56680 (patch)
treeebf6d14d72a405f19c8f33a1bab44cfcbf1430dd /toolchain
parent62869d02bc6babd84ba1b6c1a6ceacabdcf0bdfa (diff)
downloadupstream-d6c584651368d4d37c789a23dc54fb6056e56680.tar.gz
upstream-d6c584651368d4d37c789a23dc54fb6056e56680.tar.bz2
upstream-d6c584651368d4d37c789a23dc54fb6056e56680.zip
gcc: enable parallel builds
SVN-Revision: 33444
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/common.mk2
-rw-r--r--toolchain/gcc/final/Makefile2
-rw-r--r--toolchain/gcc/initial/Makefile2
-rw-r--r--toolchain/gcc/minimal/Makefile2
4 files changed, 5 insertions, 3 deletions
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index ac427c35d7..c18a330f34 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -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)
diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile
index 59a5b2497c..d9624d0673 100644
--- a/toolchain/gcc/final/Makefile
+++ b/toolchain/gcc/final/Makefile
@@ -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
diff --git a/toolchain/gcc/initial/Makefile b/toolchain/gcc/initial/Makefile
index 6b0536d83a..319a064cb1 100644
--- a/toolchain/gcc/initial/Makefile
+++ b/toolchain/gcc/initial/Makefile
@@ -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)
diff --git a/toolchain/gcc/minimal/Makefile b/toolchain/gcc/minimal/Makefile
index 45c8993ecb..2869ed5bf1 100644
--- a/toolchain/gcc/minimal/Makefile
+++ b/toolchain/gcc/minimal/Makefile
@@ -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