Date: Tue, 31 Oct 2017 19:26:07 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325246 - head/tools/tools/build_option_survey Message-ID: <201710311926.v9VJQ7qO072992@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Tue Oct 31 19:26:07 2017 New Revision: 325246 URL: https://svnweb.freebsd.org/changeset/base/325246 Log: Use -j hw.ncpu for build/install. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Modified: head/tools/tools/build_option_survey/option_survey.sh Modified: head/tools/tools/build_option_survey/option_survey.sh ============================================================================== --- head/tools/tools/build_option_survey/option_survey.sh Tue Oct 31 19:03:35 2017 (r325245) +++ head/tools/tools/build_option_survey/option_survey.sh Tue Oct 31 19:26:07 2017 (r325246) @@ -13,6 +13,7 @@ ODIR=/usr/obj/`pwd` FDIR=${ODIR}/files MNT=${ODIR}/_.mnt RDIR=${ODIR}/_.result +: ${MAKE_JOBS:="-j$(sysctl -n hw.ncpu)"} export ODIR MNT RDIR FDIR @@ -26,7 +27,7 @@ bw ( ) ( if [ $a -ne 0 ] ; then exit 1 fi - make -j 4 buildworld \ + make ${MAKE_JOBS} buildworld \ SRCCONF=${ODIR}/src.conf __MAKE_CONF=/dev/null \ > ${FDIR}/_.bw 2>&1 a=$? @@ -34,7 +35,7 @@ bw ( ) ( if [ $a -ne 0 ] ; then exit 1 fi - make -j 4 buildkernel \ + make ${MAKE_JOBS} buildkernel \ KERNCONF=GENERIC \ SRCCONF=${ODIR}/src.conf __MAKE_CONF=/dev/null \ > ${FDIR}/_.bk 2>&1 @@ -53,7 +54,7 @@ iw ( ) ( mount /dev/md${MDUNIT} ${MNT} cd ../../.. - make installworld \ + make ${MAKE_JOBS} installworld \ SRCCONF=${ODIR}/src.conf __MAKE_CONF=/dev/null \ DESTDIR=${MNT} \ > ${FDIR}/_.iw 2>&1 @@ -73,7 +74,7 @@ iw ( ) ( exit 1 fi cd .. - make installkernel \ + make ${MAKE_JOBS} installkernel \ KERNCONF=GENERIC \ DESTDIR=${MNT} \ SRCCONF=${ODIR}/src.conf __MAKE_CONF=/dev/null \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710311926.v9VJQ7qO072992>