summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-07 10:00:34 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-07 10:00:34 +0000
commite8a4e0d67c875d45d4afd9b22a884d1ebd32d410 (patch)
tree5dadc86ab8f196d7ee7d84f83407b28befc254cf
parent0c43584a88dfa1ef89a2dc52c380bf218281f57f (diff)
From: Joseph Roback <openwrt-devel@roback.cc>
26 Makefile patches for enabling parallel builds. Tested on Linux (8-core) and Darwin (12-core), individually and from clean build_root. The first set is from trunk, the second is from feeds/packages. Signed-off-by: Joe Roback <joe@roback.cc> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22965 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/busybox/Makefile4
-rw-r--r--package/cyassl/Makefile1
-rw-r--r--package/dropbear/Makefile6
-rw-r--r--package/iptables/Makefile1
-rw-r--r--package/mac80211/Makefile3
-rw-r--r--package/ncurses/Makefile1
-rw-r--r--package/zlib/Makefile4
7 files changed, 15 insertions, 5 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 7e7e447b4..4ea9a61e4 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -16,6 +16,8 @@ PKG_SOURCE_URL:=http://www.busybox.net/downloads \
http://distfiles.gentoo.org/distfiles/
PKG_MD5SUM:=7360b7138b899ee7fc885791c740c3c3
+PKG_BUILD_PARALLEL:=1
+
include $(INCLUDE_DIR)/package.mk
ifeq ($(DUMP),)
@@ -65,7 +67,7 @@ ifdef CONFIG_GCC_VERSION_4_5_0
endif
define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
KBUILD_HAVE_NLS=no \
diff --git a/package/cyassl/Makefile b/package/cyassl/Makefile
index a8168ec4c..d8e5bae13 100644
--- a/package/cyassl/Makefile
+++ b/package/cyassl/Makefile
@@ -17,6 +17,7 @@ PKG_MD5SUM:=037397c7df84b9a12e614bf46135df1c
PKG_FIXUP:=libtool
PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 77d6d9707..6fad27366 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -17,6 +17,8 @@ PKG_SOURCE_URL:= \
http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
PKG_MD5SUM:=1c69ec674481d7745452f68f2ea5597e
+PKG_BUILD_PARALLEL:=1
+
include $(INCLUDE_DIR)/package.mk
define Package/dropbear/Default
@@ -70,12 +72,12 @@ define Build/Configure
endef
define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
LD="$(TARGET_CC)" \
PROGRAMS="dropbear dbclient dropbearkey scp" \
MULTI=1 SCPPROGRESS=1
- $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
LD="$(TARGET_CC)" \
PROGRAMS="dropbearconvert"
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 08b145070..8609b6d7c 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -21,6 +21,7 @@ PKG_SOURCE_URL:=http://www.netfilter.org/projects/iptables/files \
PKG_FIXUP:=libtool
PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
ifeq ($(DUMP),)
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index 450f8443d..f3b441c8f 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -19,6 +19,7 @@ PKG_MD5SUM:=5d720b6d8de97ae61a4c3e4ee10a6de1
PKG_SOURCE:=compat-wireless-$(PKG_VERSION).tar.bz2
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -955,7 +956,7 @@ endef
ifneq ($(CONFIG_PACKAGE_kmod-cfg80211),)
define Build/Compile/kmod
rm -rf $(PKG_BUILD_DIR)/modules
- $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_OPTS) all
+ $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" $(MAKE_OPTS) all
endef
endif
diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile
index cbbb098cb..8fac06eca 100644
--- a/package/ncurses/Makefile
+++ b/package/ncurses/Makefile
@@ -17,6 +17,7 @@ PKG_SOURCE_URL:=@GNU/ncurses
PKG_MD5SUM:=cce05daf61a64501ef6cd8da1f727ec6
PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/zlib/Makefile b/package/zlib/Makefile
index c6a18378d..bcd6ae040 100644
--- a/package/zlib/Makefile
+++ b/package/zlib/Makefile
@@ -15,6 +15,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.zlib.net @SF/libpng
PKG_MD5SUM:=dee233bf288ee795ac96a98cc2e369b6
+PKG_BUILD_PARALLEL:=1
+
include $(INCLUDE_DIR)/package.mk
define Package/zlib
@@ -37,7 +39,7 @@ define Build/Configure
endef
define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
LDSHARED="$(TARGET_CROSS)ld -shared" \
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \