[linux] 02/02: test-patches: Set default number of jobs to number of available processors

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Wed Feb 8 02:09:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch sid
in repository linux.

commit fc4d14f63f76043dd428770aeeffa00edc4ccfa8
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Tue Feb 7 23:53:11 2017 +0000

    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 b2814ba..98ddd9f 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 <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
 
diff --git a/debian/changelog b/debian/changelog
index b166010..358b178 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list