Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27847c80 authored by Alexander Koskovich's avatar Alexander Koskovich Committed by Michael Bestas
Browse files

lineage: kernel: Use getconf instead of nproc

Change-Id: Id8215f290a88ddf3a6bc1764d9ef9a09f6aa810d
parent 4b3a3880
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -119,8 +119,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)

ifeq ($(TARGET_KERNEL_CLANG_COMPILE),false)
  ifeq ($(KERNEL_ARCH),arm)