diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-23 09:50:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-23 09:50:01 +0000 |
commit | ed2bf29be5ea97f67c7195cd02eaf1bc1515bd36 (patch) | |
tree | 4421970d33eba53699af86dd05308c3428b44402 /include | |
parent | 5c88d907c87b6f8c848bb16e079d760f0d5e6edb (diff) | |
download | mtk-20170518-ed2bf29be5ea97f67c7195cd02eaf1bc1515bd36.zip mtk-20170518-ed2bf29be5ea97f67c7195cd02eaf1bc1515bd36.tar.gz mtk-20170518-ed2bf29be5ea97f67c7195cd02eaf1bc1515bd36.tar.bz2 |
build: add the + token to any commands that can pass through the jobserver, fixes parallel build on some systems
SVN-Revision: 33523
Diffstat (limited to 'include')
-rw-r--r-- | include/host-build.mk | 4 | ||||
-rw-r--r-- | include/package-defaults.mk | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/host-build.mk b/include/host-build.mk index 66795c8..60b7b9f 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -80,7 +80,7 @@ ifneq ($(HOST_OS),Darwin) endif define Host/Configure/Default - (cd $(HOST_BUILD_DIR)/$(3); \ + $(if $(HOST_CONFIGURE_PARALLEL),+)(cd $(HOST_BUILD_DIR)/$(3); \ if [ -x configure ]; then \ $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \ $(2) \ @@ -97,7 +97,7 @@ define Host/Configure endef define Host/Compile/Default - $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \ + +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \ $(HOST_MAKE_FLAGS) \ $(1) endef diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 37f814d..e2ce863 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -129,7 +129,7 @@ MAKE_INSTALL_FLAGS = \ MAKE_PATH = . define Build/Compile/Default - $(MAKE_VARS) \ + +$(MAKE_VARS) \ $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ $(MAKE_FLAGS) \ $(1); |