From owner-svn-src-all@freebsd.org Tue Oct 31 19:26:09 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 173D4E61A58; Tue, 31 Oct 2017 19:26:09 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D82611A58; Tue, 31 Oct 2017 19:26:08 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9VJQ7ur072993; Tue, 31 Oct 2017 19:26:07 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9VJQ7qO072992; Tue, 31 Oct 2017 19:26:07 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201710311926.v9VJQ7qO072992@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Tue, 31 Oct 2017 19:26:07 +0000 (UTC) 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 X-SVN-Group: head X-SVN-Commit-Author: bdrewery X-SVN-Commit-Paths: head/tools/tools/build_option_survey X-SVN-Commit-Revision: 325246 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2017 19:26:09 -0000 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 \