]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: add gzip-native to do_deploy dependencies
authorMatt Madison <matt@madison.systems>
Sun, 5 Jul 2020 13:44:32 +0000 (06:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jul 2020 09:37:07 +0000 (10:37 +0100)
When a modules tarball is created during kernel_do_deploy,
the tarball is compressed using gzip, but gzip-native is not
a dependency so the build host's gzip is being used for this.

Using gzip-native will, by default, use pigz instead of
single-threaded gzip, making this task less of a bottleneck
for builds with a large modules package.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index c834aad033cb75b59ff8af38714dec8938a88b6e..46479e245cf35c1a4c5f9ba8e6d3fa4d0e70c087 100644 (file)
@@ -8,7 +8,7 @@ DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-na
 DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lz4", "lz4-native", "", d)}"
 PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
 
-do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
+do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot gzip-native:do_populate_sysroot"
 do_clean[depends] += "make-mod-scripts:do_clean"
 
 CVE_PRODUCT ?= "linux_kernel"