Changeset 23480


Ignore:
Timestamp:
2010-10-16T20:42:58+02:00 (6 years ago)
Author:
mb
Message:

Support force-disabling per-package parallel build with {PKG,HOST}_BUILD_PARALLEL:=0

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/host-build.mk

    r22737 r23480  
    99HOST_INSTALL_DIR ?= $(HOST_BUILD_DIR)/host-install 
    1010HOST_BUILD_PARALLEL ?= 
    11 HOST_JOBS ?= $(if $(HOST_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),$(if $(CONFIG_PKG_BUILD_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS))) 
     11 
     12ifeq ($(strip $(HOST_BUILD_PARALLEL)),0) 
     13HOST_JOBS?=-j1 
     14else 
     15HOST_JOBS?=-j$(if $(HOST_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),\ 
     16        $(if $(CONFIG_PKG_BUILD_PARALLEL),$(CONFIG_PKG_BUILD_JOBS),1)) 
     17endif 
    1218 
    1319include $(INCLUDE_DIR)/host.mk 
  • trunk/include/package.mk

    r22737 r23480  
    1212PKG_MD5SUM ?= unknown 
    1313PKG_BUILD_PARALLEL ?= 
    14 PKG_JOBS ?= $(if $(PKG_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),$(if $(CONFIG_PKG_BUILD_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS))) 
     14 
     15ifeq ($(strip $(PKG_BUILD_PARALLEL)),0) 
     16PKG_JOBS?=-j1 
     17else 
     18PKG_JOBS?=-j$(if $(PKG_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),\ 
     19        $(if $(CONFIG_PKG_BUILD_PARALLEL),$(CONFIG_PKG_BUILD_JOBS),1)) 
     20endif 
    1521 
    1622include $(INCLUDE_DIR)/prereq.mk 
Note: See TracChangeset for help on using the changeset viewer.