From 1470e3d58c3f2ee1c39894d0b9dc29ea6577d7c8 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 15 Sep 2012 14:18:19 +0000 Subject: gcc: enable parallel builds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33444 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/gcc/common.mk | 2 ++ toolchain/gcc/final/Makefile | 2 +- toolchain/gcc/initial/Makefile | 2 +- toolchain/gcc/minimal/Makefile | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'toolchain') diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index ac427c35d..c18a330f3 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 59a5b2497..d9624d067 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 6b0536d83..319a064cb 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 45c8993ec..2869ed5bf 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 -- cgit v1.2.3