test-patches: Set default number of jobs to number of available processors

With the current default of 1, most users are going to be kept waiting
unncessarily.
This commit is contained in:
Ben Hutchings 2017-02-07 23:53:11 +00:00
parent bd4315df9c
commit fc4d14f63f
2 changed files with 5 additions and 1 deletions

View File

@ -20,12 +20,13 @@ else
fi
fuzz=0
jobs=$(nproc)
eval "set -- $(getopt -n "$0" -o "f:j:s:" -l "fuzz:" -- "$@")"
while true; do
case "$1" in
-f) flavour="$2"; shift 2 ;;
-j) export MAKEFLAGS="$MAKEFLAGS -j$2"; shift 2 ;;
-j) jobs="$2"; shift 2 ;;
-s) featureset="$2"; shift 2 ;;
--fuzz) fuzz="$2"; shift 2;;
--) shift 1; break ;;
@ -38,6 +39,7 @@ if [ $# -lt 1 ]; then
Options:
-f <flavour> specify the 'flavour' of kernel to build, e.g. 686-pae
-j <jobs> specify number of compiler jobs to run in parallel
(default: number of available processors)
-s <featureset> specify an optional featureset to apply, e.g. rt
--fuzz <num> set the maximum patch fuzz factor (default: 0)
EOF
@ -50,6 +52,7 @@ if [ -z "$flavour" ]; then
fi
export DEB_BUILD_PROFILES=pkg.linux.notools
export MAKEFLAGS="$MAKEFLAGS -j$jobs"
dpkg-checkbuilddeps -B

1
debian/changelog vendored
View File

@ -129,6 +129,7 @@ linux (4.9.8-1) UNRELEASED; urgency=medium
* cpumask: use nr_cpumask_bits for parsing functions (Closes: #848682)
* pegasus: Use heap buffers for all register access (Closes: #852556)
* test-patches: Use the pkg.linux.notools build profile
* test-patches: Set default number of jobs to number of available processors
[ Roger Shimizu ]
* [armel] ARM: dts: orion5x-lschl: Fix model name