summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.package
diff options
context:
space:
mode:
authorDmitrii Bundin <dmitrii.bundin.a@gmail.com>2023-11-06 00:56:22 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-11-28 11:22:51 +0900
commit259b8bd13db5f61fcc60192d4f73eb2eac9c426f (patch)
treeddce00ea8335ec0b93594596396e39a6f2a2cc23 /scripts/Makefile.package
parentce1fc9345a59c55d3a46dd7da872791cae41324e (diff)
downloadlinux-stable-259b8bd13db5f61fcc60192d4f73eb2eac9c426f.tar.gz
linux-stable-259b8bd13db5f61fcc60192d4f73eb2eac9c426f.tar.bz2
linux-stable-259b8bd13db5f61fcc60192d4f73eb2eac9c426f.zip
kbuild: deb-pkg: apply short -R and -j options
The long version --rules-file and --jobs are available since 1.18.8 while their short analogues -R and -j have been added since 1.14.7. The option --rules-file the way it works currently was introduced in the commit 5cd52673aabdf5eaa58181972119a41041fc85f2 of dpkg dated 23.07.18 with the following changelog entry: * Fix dpkg-buildpackage option --rules-file parsing. It was trying to parse it as --rules-target, which due to the ordering was a no-op. The current behavior of the long version --rules-file is guaranteed to be in use starting 1.19.1 and might cause build failures for some versions newer than 1.18.8 even in spite of being documented that way. Signed-off-by: Dmitrii Bundin <dmitrii.bundin.a@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.package')
-rw-r--r--scripts/Makefile.package2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.package b/scripts/Makefile.package
index 3addd1c0b989..f30349f46a97 100644
--- a/scripts/Makefile.package
+++ b/scripts/Makefile.package
@@ -146,7 +146,7 @@ deb-pkg srcdeb-pkg bindeb-pkg:
$(if $(findstring source, $(build-type)), \
--unsigned-source --compression=$(KDEB_SOURCE_COMPRESS)) \
$(if $(findstring binary, $(build-type)), \
- --rules-file='$(MAKE) -f debian/rules' --jobs=1 -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch), \
+ -R'$(MAKE) -f debian/rules' -j1 -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch), \
--no-check-builddeps) \
$(DPKG_FLAGS))