[L/unstable 09/13] UBUNTU: [Packaging] use parralel builds in more places
Masahiro Yamada
masahiro.yamada at canonical.com
Mon Dec 5 08:56:15 UTC 2022
Kbuild is designed to work correctly with parallel builds.
For Kconfig stage, header installation, or whatever. I do not
see any reason why these must run in a single thread.
Signed-off-by: Masahiro Yamada <masahiro.yamada at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index f32767671705..3d03ee610d0b 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -36,7 +36,7 @@ $(stampdir)/stamp-prepare-tree-%: debian/scripts/fix-filenames
sed -ie 's/.*CONFIG_UBUNTU_ODM_DRIVERS.*/# CONFIG_UBUNTU_ODM_DRIVERS is not set/' \
$(builddir)/build-$*/.config
find $(builddir)/build-$* -name "*.ko" | xargs rm -f
- $(build_cd) $(kmake) $(build_O) -j1 olddefconfig
+ $(build_cd) $(kmake) $(build_O) $(conc_level) olddefconfig
touch $@
# Used by developers as a shortcut to prepare a tree for compilation.
@@ -555,7 +555,7 @@ ifeq ($(do_libc_dev_package),true)
endif
rm -rf $(headers_tmp)
install -d $(headers_tmp) $(headers_dir)/usr/include/
- $(hmake) headers_install
+ $(hmake) $(conc_level) headers_install
( cd $(headers_tmp)/install/include/ && \
find . -name '.' -o -name '.*' -prune -o -print | \
cpio -pvd --preserve-modification-time \
--
2.34.1
More information about the kernel-team
mailing list