[kernel] r14336 - dists/trunk/linux-2.6/debian

Ben Hutchings benh at alioth.debian.org
Mon Oct 5 01:01:30 UTC 2009


Author: benh
Date: Mon Oct  5 01:01:26 2009
New Revision: 14336

Log:
Add support for DEB_BUILD_OPTIONS=parallel=N

Modified:
   dists/trunk/linux-2.6/debian/rules.real

Modified: dists/trunk/linux-2.6/debian/rules.real
==============================================================================
--- dists/trunk/linux-2.6/debian/rules.real	Sun Oct  4 23:41:51 2009	(r14335)
+++ dists/trunk/linux-2.6/debian/rules.real	Mon Oct  5 01:01:26 2009	(r14336)
@@ -19,6 +19,10 @@
 
 stamp = [ -d $(dir $@) ] || mkdir $(dir $@); touch $@
 
+ifneq (,$(findstring parallel=,$(DEB_BUILD_OPTIONS)))
+  comma := ,
+  DEBIAN_KERNEL_JOBS := $(subst parallel=,,$(filter parallel=%,$(subst $(comma), ,$(DEB_BUILD_OPTIONS))))
+endif
 ifdef DEBIAN_KERNEL_JOBS
   JOBS_ARG = -j$(DEBIAN_KERNEL_JOBS)
 endif



More information about the Kernel-svn-changes mailing list