diff options
author | Ed Maste <emaste@freebsd.org> | 2016-12-21 21:06:20 -0500 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-22 11:11:46 +0100 |
commit | e3701b78885d35860d60ea04267f509f789e1074 (patch) | |
tree | e808ee5752bbff9b1cbe543d6726bd18d1df330a | |
parent | 43e9a1ec3545a7c06ac0a829a406d7dd64487819 (diff) | |
download | jenkins.debian.net-e3701b78885d35860d60ea04267f509f789e1074.tar.xz |
reproducible freebsd: get # of CPUs via sysctl
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_freebsd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" && \ |