From e3701b78885d35860d60ea04267f509f789e1074 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 21 Dec 2016 21:06:20 -0500 Subject: reproducible freebsd: get # of CPUs via sysctl Signed-off-by: Holger Levsen --- bin/reproducible_freebsd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_freebsd.sh') diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index 6056ea56..c18d5091 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -123,7 +123,7 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do echo "=============================================================================" export TZ="/usr/share/zoneinfo/Etc/GMT+12" export LANG="en_GB.UTF-8" - NUM_CPU=4 # if someone could tell me how to determine this on FreeBSD, this would be neat + NUM_CPU=$(sysctl -n hw.ncpu) # actually build everything if ( $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU buildworld" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU buildkernel" && \ -- cgit v1.2.3-54-g00ecf