]> git.proxmox.com Git - pve-kernel.git/commitdiff
d/rules: honor the parallel build-option
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 16:15:51 +0000 (18:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 17:25:13 +0000 (19:25 +0200)
no fun to build the kernel with just a single job at the same time,
which happens e.g., in an sbuild environment.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index bcf335a53d3065eff525ee9bdd0f2f9219715436..744e5cb4c178524f08d1a03d35b1d7d8f0dd8205 100755 (executable)
@@ -11,6 +11,8 @@ include /usr/share/dpkg/default.mk
 include debian/rules.d/env.mk
 include debian/rules.d/$(DEB_BUILD_ARCH).mk
 
+MAKEFLAGS += $(subst parallel=,-j,$(filter parallel=%,${DEB_BUILD_OPTIONS}))
+
 CHANGELOG_DATE:=$(shell dpkg-parsechangelog -SDate)
 CHANGELOG_DATE_UTC_ISO := $(shell date -u -d '$(CHANGELOG_DATE)' +%Y-%m-%dT%H:%MZ)