kernel: Use nproc from prebuilts

Change-Id: I1d7a33dac57cbba9ce1a92f81d74709146e92968
This commit is contained in:
dianlujitao 2020-09-16 10:40:57 +08:00 committed by Bruno Martins
parent c3ad8b5c54
commit 2c62140d3d

View file

@ -103,7 +103,7 @@ endif
KERNEL_MAKE_FLAGS :=
# Add back threads, ninja cuts this to $(nproc)/2
KERNEL_MAKE_FLAGS += -j$(shell nproc --all)
KERNEL_MAKE_FLAGS += -j$(shell prebuilts/tools-lineage/$(HOST_PREBUILT_TAG)/bin/nproc --all)
ifeq ($(KERNEL_ARCH),arm)
# Avoid "Unknown symbol _GLOBAL_OFFSET_TABLE_" errors