[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible freebsd: get # of CPUs via sysctl
Holger Levsen
holger at layer-acht.org
Thu Dec 22 10:12:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit e3701b78885d35860d60ea04267f509f789e1074
Author: Ed Maste <emaste at freebsd.org>
Date: Wed Dec 21 21:06:20 2016 -0500
reproducible freebsd: get # of CPUs via sysctl
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_freebsd.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 6056ea5..c18d509 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" && \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list