Changeset 33423


Ignore:
Timestamp:
2012-09-15T14:34:48+02:00 (4 years ago)
Author:
nbd
Message:

build: add jobserver support for host builds

File:
1 edited

Legend:

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

    r33351 r33423  
    1010HOST_BUILD_PARALLEL ?= 
    1111 
     12ifneq ($(CONFIG_PKG_BUILD_USE_JOBSERVER),) 
     13  HOST_MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) -j) 
     14else 
     15  HOST_MAKE_J:=-j$(CONFIG_PKG_BUILD_JOBS) 
     16endif 
     17 
    1218ifeq ($(strip $(HOST_BUILD_PARALLEL)),0) 
    1319HOST_JOBS?=-j1 
    1420else 
    1521HOST_JOBS?=$(if $(HOST_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),\ 
    16         $(if $(CONFIG_PKG_BUILD_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS),-j1),-j1) 
     22        $(if $(CONFIG_PKG_BUILD_PARALLEL),$(HOST_MAKE_J),-j1),-j1) 
    1723endif 
    1824 
Note: See TracChangeset for help on using the changeset viewer.