]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
base: Allow zstd and xz decompression from the host tools
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Jun 2026 09:11:53 +0000 (10:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Jun 2026 17:03:16 +0000 (18:03 +0100)
commitd1930f82e67f04446cc15847e3098150c6e7b5b7
tree7eff4a9266defcc19cdad881e3584f612b353009
parentf9b8ca28d1cc4b9165e3c61b4458e41bb02b247a
base: Allow zstd and xz decompression from the host tools

We have xz and zstd in HOSTTOOLS but not ASSUME_PROVIDED. In most cases where
we have a dependency on xz-native or zstd-native, we need to compress files
or we need the libraries those recipes provide. In some cases we just need
decompression though.

Compression output is version dependent so we need those dependencies. Libraries
need headers so those are needed too. THe main place we could benefit are the
unpack dependencies from base.bbclass.

Therefore add "XXX-decompress" PROVIDES to those recipes, then change the
dependency in base.bbclass to indicate decompression only. We can then
ASSUME_PROVIDED the decompression side of things to optimise builds whilst
still keeping the other dependencies functional.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/base.bbclass
meta/conf/bitbake.conf
meta/recipes-extended/xz/xz_5.8.3.bb
meta/recipes-extended/zstd/zstd_1.5.7.bb