From fc4d14f63f76043dd428770aeeffa00edc4ccfa8 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 7 Feb 2017 23:53:11 +0000 Subject: [PATCH] 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. --- debian/bin/test-patches | 5 ++++- debian/changelog | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/bin/test-patches b/debian/bin/test-patches index b2814ba98..98ddd9f93 100755 --- a/debian/bin/test-patches +++ b/debian/bin/test-patches @@ -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 specify the 'flavour' of kernel to build, e.g. 686-pae -j specify number of compiler jobs to run in parallel + (default: number of available processors) -s specify an optional featureset to apply, e.g. rt --fuzz 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 diff --git a/debian/changelog b/debian/changelog index b16601063..358b178fa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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