From: Tom Jones Date: Wed, 7 Feb 2024 13:17:17 +0000 (+0000) Subject: build: Detect number of CPUs for build processes on FreeBSD X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=26eec75f2b30f4c03b4ca671165cd0d4823f0175 build: Detect number of CPUs for build processes on FreeBSD Type: improvement Change-Id: Ia3a00266f47f0c3e567efa143ef08bf4e8cffe35 Signed-off-by: Tom Jones --- 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