Hi,
this patch fixes toolchain parallel build, which reduces build time.
In order to enable parallel build, change line 21 of
include/host-build.mk from:
override MAKEFLAGS=
to:
override MAKEFLAGS=$(MAKE_JOBS)
-Raphael
diff -pruN trunk.orig//include/host-build.mk trunk/include/host-build.mk
--- trunk.orig//include/host-build.mk 2010-03-04 15:06:52.000000000 +0100
+++ trunk/include/host-build.mk 2010-03-04 15:07:06.000000000 +0100
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -80,7 +80,7 @@ define Host/Compile
endef
define Host/Install/Default
- $(MAKE) -C $(HOST_BUILD_DIR) install
+ $(_SINGLE)$(MAKE) -C $(HOST_BUILD_DIR) install
endef
define Host/Install
diff -pruN trunk.orig//toolchain/gcc/Makefile trunk/toolchain/gcc/Makefile
--- trunk.orig//toolchain/gcc/Makefile 2010-03-04 15:07:43.000000000 +0100
+++ trunk/toolchain/gcc/Makefile 2010-03-04 15:07:54.000000000 +0100
@@ -250,7 +250,7 @@ define SetupExtraArch
endef
define Stage2/Install
- $(GCC_MAKE) -C $(HOST_BUILD_DIR2) install
+ $(_SINGLE)$(GCC_MAKE) -C $(HOST_BUILD_DIR2) install
# Set up the symlinks to enable lying about target name.
set -e; \
(cd $(TOOLCHAIN_DIR)/usr; \
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel