Add support for DEB_BUILD_OPTIONS=parallel=N
svn path=/dists/trunk/linux-2.6/; revision=14336
This commit is contained in:
parent
b509d4c613
commit
e0d42d5fe0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue