From owner-svn-src-projects@FreeBSD.ORG Wed Feb 26 01:09:36 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4CD092CF; Wed, 26 Feb 2014 01:09:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38C431129; Wed, 26 Feb 2014 01:09:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1Q19aA7014887; Wed, 26 Feb 2014 01:09:36 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1Q19ao3014885; Wed, 26 Feb 2014 01:09:36 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201402260109.s1Q19ao3014885@svn.freebsd.org> From: Glen Barber Date: Wed, 26 Feb 2014 01:09:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r262510 - projects/release-embedded/release X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 01:09:36 -0000 Author: gjb Date: Wed Feb 26 01:09:35 2014 New Revision: 262510 URL: http://svnweb.freebsd.org/changeset/base/262510 Log: MFH r262509: Rework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an unnecessary expr(1) call. Sponsored by: The FreeBSD Foundation Modified: projects/release-embedded/release/release.sh Directory Properties: projects/release-embedded/ (props changed) Modified: projects/release-embedded/release/release.sh ============================================================================== --- projects/release-embedded/release/release.sh Wed Feb 26 01:06:41 2014 (r262509) +++ projects/release-embedded/release/release.sh Wed Feb 26 01:09:35 2014 (r262510) @@ -68,11 +68,9 @@ SRC_CONF="/dev/null" # The number of make(1) jobs, defaults to the number of CPUs available for # buildworld, and half of number of CPUs available for buildkernel. -NCPU=$(sysctl -n hw.ncpu) -if [ ${NCPU} -gt 1 ]; then - WORLD_FLAGS="-j${NCPU}" - KERNEL_FLAGS="-j$(expr ${NCPU} / 2)" -fi +WORLD_FLAGS="-j$(sysctl -n hw.ncpu)" +KERNEL_FLAGS="-j$(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2))" + MAKE_FLAGS="-s" # The name of the kernel to build, defaults to GENERIC.