lineage: kernel: Use getconf instead of nproc

Change-Id: Id8215f290a88ddf3a6bc1764d9ef9a09f6aa810d
This commit is contained in:
Alexander Koskovich 2022-08-04 13:00:07 -07:00 committed by Michael Bestas
parent bcfa69d705
commit 70b1bf3812

View file

@ -80,8 +80,8 @@ endif
# Clear this first to prevent accidental poisoning from env
KERNEL_MAKE_FLAGS :=
# Add back threads, ninja cuts this to $(nproc)/2
KERNEL_MAKE_FLAGS += -j$(shell prebuilts/tools-lineage/$(HOST_PREBUILT_TAG)/bin/nproc --all)
# Add back threads, ninja cuts this to $(getconf _NPROCESSORS_ONLN)/2
KERNEL_MAKE_FLAGS += -j$(shell getconf _NPROCESSORS_ONLN)
TOOLS_PATH_OVERRIDE := \
LD_LIBRARY_PATH=$(BUILD_TOP)/prebuilts/tools-lineage/$(HOST_PREBUILT_TAG)/lib:$$LD_LIBRARY_PATH \