diff --git a/release/arm/BEAGLEBONE.conf b/release/arm/BEAGLEBONE.conf index e164f582b8f8..6d9927c0542b 100644 --- a/release/arm/BEAGLEBONE.conf +++ b/release/arm/BEAGLEBONE.conf @@ -23,6 +23,8 @@ NODOC=yes # Since this file is sourced by a script that runs another # script, these must be exported. set -a +WORLD_FLAGS="-j $(sysctl -n hw.ncpu)" +KERNEL_FLAGS="-j $(expr \( $(sysctl -n hw.ncpu) + 1 \) / 2)" CHROOTDIR="/scratch" EMBEDDEDBUILD=1 EMBEDDEDPORTS="lang/python textproc/gsed" diff --git a/release/arm/PANDABOARD.conf b/release/arm/PANDABOARD.conf index 1ddd68a99a70..1e2b7a3fd181 100644 --- a/release/arm/PANDABOARD.conf +++ b/release/arm/PANDABOARD.conf @@ -23,6 +23,8 @@ NODOC=yes # Since this file is sourced by a script that runs another # script, these must be exported. set -a +WORLD_FLAGS="-j $(sysctl -n hw.ncpu)" +KERNEL_FLAGS="-j $(expr \( $(sysctl -n hw.ncpu) + 1 \) / 2)" CHROOTDIR="/scratch" EMBEDDEDBUILD=1 EMBEDDEDPORTS="lang/python textproc/gsed" diff --git a/release/arm/RPI-B.conf b/release/arm/RPI-B.conf index c3e5248db00c..417af4ed8df4 100644 --- a/release/arm/RPI-B.conf +++ b/release/arm/RPI-B.conf @@ -23,6 +23,8 @@ NODOC=yes # Since this file is sourced by a script that runs another # script, these must be exported. set -a +WORLD_FLAGS="-j $(sysctl -n hw.ncpu)" +KERNEL_FLAGS="-j $(expr \( $(sysctl -n hw.ncpu) + 1 \) / 2)" CHROOTDIR="/scratch" EMBEDDEDBUILD=1 EMBEDDEDPORTS="lang/python textproc/gsed" diff --git a/release/tools/arm/crochet-BEAGLEBONE.conf b/release/tools/arm/crochet-BEAGLEBONE.conf index 0a37f35ef3bd..b261fc9c4dfc 100644 --- a/release/tools/arm/crochet-BEAGLEBONE.conf +++ b/release/tools/arm/crochet-BEAGLEBONE.conf @@ -19,9 +19,9 @@ _REVISION=$(make -C ${FREEBSD_SRC}/release -V REVISION) KERNCONF=BEAGLEBONE TARGET=arm TARGET_ARCH=armv6 -FREEBSD_BUILDWORLD_EXTRA_ARGS="" +FREEBSD_BUILDWORLD_EXTRA_ARGS="${WORLD_FLAGS}" +FREEBSD_BUILDKERNEL_EXTRA_ARGS="${KERNEL_FLAGS}" FREEBSD_INSTALLWORLD_EXTRA_ARGS="" -FREEBSD_BUILDKERNEL_EXTRA_ARGS="" FREEBSD_INSTALLKERNEL_EXTRA_ARGS="" FREEBSD_WORLD_EXTRA_ARGS="" FREEBSD_KERNEL_EXTRA_ARGS="" diff --git a/release/tools/arm/crochet-PANDABOARD.conf b/release/tools/arm/crochet-PANDABOARD.conf index bf333a44507a..f1924ba522fa 100644 --- a/release/tools/arm/crochet-PANDABOARD.conf +++ b/release/tools/arm/crochet-PANDABOARD.conf @@ -19,9 +19,9 @@ _REVISION=$(make -C ${FREEBSD_SRC}/release -V REVISION) KERNCONF=PANDABOARD TARGET=arm TARGET_ARCH=armv6 -FREEBSD_BUILDWORLD_EXTRA_ARGS="" +FREEBSD_BUILDWORLD_EXTRA_ARGS="${WORLD_FLAGS}" +FREEBSD_BUILDKERNEL_EXTRA_ARGS="${KERNEL_FLAGS}" FREEBSD_INSTALLWORLD_EXTRA_ARGS="" -FREEBSD_BUILDKERNEL_EXTRA_ARGS="" FREEBSD_INSTALLKERNEL_EXTRA_ARGS="" FREEBSD_WORLD_EXTRA_ARGS="" FREEBSD_KERNEL_EXTRA_ARGS="" diff --git a/release/tools/arm/crochet-RPI-B.conf b/release/tools/arm/crochet-RPI-B.conf index 48887793e414..76c50ea99358 100644 --- a/release/tools/arm/crochet-RPI-B.conf +++ b/release/tools/arm/crochet-RPI-B.conf @@ -19,9 +19,9 @@ _REVISION=$(make -C ${FREEBSD_SRC}/release -V REVISION) KERNCONF=RPI-B TARGET=arm TARGET_ARCH=armv6 -FREEBSD_BUILDWORLD_EXTRA_ARGS="" +FREEBSD_BUILDWORLD_EXTRA_ARGS="${WORLD_FLAGS}" +FREEBSD_BUILDKERNEL_EXTRA_ARGS="${KERNEL_FLAGS}" FREEBSD_INSTALLWORLD_EXTRA_ARGS="" -FREEBSD_BUILDKERNEL_EXTRA_ARGS="" FREEBSD_INSTALLKERNEL_EXTRA_ARGS="" FREEBSD_WORLD_EXTRA_ARGS="" FREEBSD_KERNEL_EXTRA_ARGS=""