]> 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>
Fri, 5 Jun 2026 14:50:15 +0000 (15:50 +0100)
commit345f72f293a33cfa00218924e259b307f22804b8
tree03fe98858f32ecf59631fe525ec835476f650c1f
parent43ec088af814d0068b90d011c86b656fbbb7090f
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