package: add support for extracting zstd archives

Teach the generic package handling code how to extract zstd (.tar.zst)
archives. When zstd is not installed on the host, host-zstd gets built
automatically.

Signed-off-by: Matt Staveley-Taylor <matt.stav.taylor@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Matt Staveley-Taylor
2024-04-08 02:38:44 +01:00
committed by Thomas Petazzoni
parent 2ca698051c
commit 7d0707cae4
5 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
ifeq (,$(call suitable-host-package,zstd,$(ZSTDCAT)))
BR2_ZSTD_HOST_DEPENDENCY = host-zstd
ZSTDCAT = $(HOST_DIR)/bin/zstdcat
endif