From 75af1eb87897df0f79d7ee125c87730bf5b3e361 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 11 Jul 2019 01:32:43 -0400 Subject: build: Run as many jobs as there are CPUs --- diff --git a/build b/build index 5f604a0..0b00ac7 100755 --- a/build +++ b/build @@ -4,6 +4,7 @@ include ../source.mk V = 1 KBUILD_ARCH = $$(oh-architecture "$${OPK_HOST_ARCH}") +JOBS = $$(printf '%s\n' /sys/devices/system/cpu/cpu[0-9]* | wc -l) # ProteanOS's GCC is currently broken: "-print-file-name=include" simply prints # "include". @@ -28,7 +29,7 @@ build: sed $(nsif_sed) src/Makefile.orig 1>src/Makefile; \ fi; \ read img_src img_dest