From 32f8ca5e40576cffcdb29183ebc86199698b01d4 Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Mon, 28 Sep 2020 00:58:06 +0900 Subject: [PATCH] Guess the number of cores automatically --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 622d89f..be619c0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +JOBS=$(shell grep -c '^processor' /proc/cpuinfo) + export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabi- @@ -27,7 +29,7 @@ umenuconfig: .PHONY: ubuild: - make -j12 -C ./u-boot-brain u-boot.sb + make -j$(JOBS) -C ./u-boot-brain u-boot.sb .PHONY: ldefconfig: @@ -44,7 +46,7 @@ lsavedefconfig: .PHONY: lbuild: - make -C ./linux-brain -j12 + make -j$(JOBS) -C ./linux-brain .PHONY: uuu: