[elbe-devel] [PATCH] debianize: kernel - use parallel setting from debuild, etc
Manuel Traut
manut at linutronix.de
Wed Jun 14 14:45:23 CEST 2017
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/makofiles/debianize/kernel/rules.mako | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/elbepack/makofiles/debianize/kernel/rules.mako b/elbepack/makofiles/debianize/kernel/rules.mako
index 18701312..b28d3016 100755
--- a/elbepack/makofiles/debianize/kernel/rules.mako
+++ b/elbepack/makofiles/debianize/kernel/rules.mako
@@ -18,6 +18,11 @@ INSTALL_PATH=$(KERNEL_PATH) \
INSTALL_DTBS_PATH=$(DTBS_PATH) \
O=debian/build
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ MAKE_OPTS += -j$(NUMJOBS)
+endif
+
#export DH_VERBOSE=1
override_dh_auto_clean:
@@ -32,7 +37,7 @@ override_dh_auto_configure:
override_dh_auto_build:
rm -rf include/config
- $(MAKE) -j`nproc` $(MAKE_OPTS) ${imgtype} modules
+ $(MAKE) $(MAKE_OPTS) ${imgtype} modules
test ${k_arch} = arm && make -j`nproc` $(MAKE_OPTS) dtbs || true
override_dh_auto_install:
--
2.11.0
More information about the elbe-devel
mailing list