From 6d55ba0f8aa6b64f0b2df921934af2814e20680f Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Mon, 23 Oct 2023 11:24:56 +0200 Subject: [PATCH] package/opkg: add zstd support Signed-off-by: Adam Duskett [yann.morin.1998@free.fr: drop option, use package as condition] Signed-off-by: Yann E. MORIN --- package/opkg/opkg.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk index e167ba4fc4..f14c850440 100644 --- a/package/opkg/opkg.mk +++ b/package/opkg/opkg.mk @@ -10,7 +10,7 @@ OPKG_DEPENDENCIES = host-pkgconf libarchive OPKG_LICENSE = GPL-2.0+ OPKG_LICENSE_FILES = COPYING OPKG_INSTALL_STAGING = YES -OPKG_CONF_OPTS = --disable-curl --disable-zstd +OPKG_CONF_OPTS = --disable-curl ifeq ($(BR2_PACKAGE_OPKG_GPG_SIGN),y) OPKG_CONF_OPTS += --enable-gpg @@ -22,6 +22,13 @@ else OPKG_CONF_OPTS += --disable-gpg endif +ifeq ($(BR2_PACKAGE_ZSTD),y) +OPKG_DEPENDENCIES += zstd +OPKG_CONF_OPTS += --enable-zstd +else +OPKG_CONF_OPTS += --disable-zstd +endif + # Ensure directory for lockfile exists define OPKG_CREATE_LOCKDIR mkdir -p $(TARGET_DIR)/usr/lib/opkg