From 26eec75f2b30f4c03b4ca671165cd0d4823f0175 Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Wed, 7 Feb 2024 13:17:17 +0000 Subject: build: Detect number of CPUs for build processes on FreeBSD Type: improvement Change-Id: Ia3a00266f47f0c3e567efa143ef08bf4e8cffe35 Signed-off-by: Tom Jones --- build-root/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build-root/Makefile') diff --git a/build-root/Makefile b/build-root/Makefile index 68d295e6808..d69a94c1e41 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -650,11 +650,18 @@ configure_check_timestamp = \ # /proc/cpuinfo does not exist on platforms without a /proc and on some # platforms, notably inside containers, it has no content. In those cases # we assume there's 1 processor; we use 2*ncpu for the -j option. +# +# On FreeBSD we can call nproc to get the number of processors. +# # NB: GNU Make 4.2 will let us use '$(file