User can configure parallel execution job count using NPROCS environment variable
- Reduce local compilation overhead when doing multiple job
- Protect excessive CI processor consumtion by one job
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
CROSS_BUILD?=0
HOST_OS?=linux
TARGET_OS?=linux
-NPROCS:=1
PARALLEL_BUILD?=1
## TODO: fix obs build break
OBS_BUILD?=OFF
ifeq ($(PARALLEL_BUILD),1)
# Get number of processors (linux only for now)
ifeq ($(HOST_OS),linux)
- NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
+ NPROCS?=$(shell grep -c ^processor /proc/cpuinfo)
endif
endif
+NPROCS?=1
WORKHOME=Product
WORKFOLDER=$(TARGET_ARCH_LC)-$(TARGET_OS).$(BUILD_TYPE_LC)
WORKDIR=$(WORKHOME)/$(WORKFOLDER)