Add support for DEB_BUILD_OPTIONS=parallel=N

svn path=/dists/trunk/linux-2.6/; revision=14336
This commit is contained in:
Ben Hutchings 2009-10-05 01:01:26 +00:00
parent b509d4c613
commit e0d42d5fe0
1 changed files with 4 additions and 0 deletions

4
debian/rules.real vendored
View File

@ -19,6 +19,10 @@ include debian/rules.defs
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