mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Support parallel build of certain packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22696 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user