aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-08-18 13:57:58 +0000
committerMichael Büsch <mb@bu3sch.de>2010-08-18 13:57:58 +0000
commit78ae653e013080253a986f3b7ebca1c6bc631306 (patch)
tree2a58f3feae7536cc41649e7bd25f142bed291782 /include
parent1066628c7d6e31c32a8e4a088b81a106776694b3 (diff)
downloadupstream-78ae653e013080253a986f3b7ebca1c6bc631306.tar.gz
upstream-78ae653e013080253a986f3b7ebca1c6bc631306.tar.bz2
upstream-78ae653e013080253a986f3b7ebca1c6bc631306.zip
Support parallel build of certain packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22696 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package-defaults.mk2
-rw-r--r--include/package.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index ecc3af499f..117497d5de 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -113,7 +113,7 @@ MAKE_PATH = .
define Build/Compile/Default
$(MAKE_VARS) \
- $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
+ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
$(MAKE_FLAGS) \
$(1);
endef
diff --git a/include/package.mk b/include/package.mk
index cde5614396..fd53123f61 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -10,6 +10,8 @@ all: $(if $(DUMP),dumpinfo,compile)
PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))
PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install
PKG_MD5SUM ?= unknown
+PKG_BUILD_PARALLEL ?=
+PKG_JOBS ?= $(if $(PKG_BUILD_PARALLEL),$(if $(CONFIG_PKG_BUILD_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS)))
include $(INCLUDE_DIR)/prereq.mk
include $(INCLUDE_DIR)/host.mk