package/btrfs-progs: add zstd support

zstd is supported since version 4.13.1 and
717a8b1e5d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-01-08 22:49:52 +01:00 committed by Yann E. MORIN
parent 3fac3b2b88
commit d9437db272

View File

@ -8,7 +8,7 @@ BTRFS_PROGS_VERSION = 5.15.1
BTRFS_PROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/kdave/btrfs-progs
BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
BTRFS_PROGS_DEPENDENCIES = host-pkgconf lzo util-linux zlib
BTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-zstd --disable-python
BTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-python
BTRFS_PROGS_LICENSE = GPL-2.0, LGPL-2.1+ (libbtrfsutil)
BTRFS_PROGS_LICENSE_FILES = COPYING libbtrfsutil/COPYING
BTRFS_PROGS_INSTALL_STAGING = YES
@ -30,6 +30,13 @@ else
BTRFS_PROGS_CONF_OPTS += --disable-convert
endif
ifeq ($(BR2_PACKAGE_ZSTD),y)
BTRFS_PROGS_CONF_OPTS += --enable-zstd
BTRFS_PROGS_DEPENDENCIES += zstd
else
BTRFS_PROGS_CONF_OPTS += --disable-zstd
endif
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
BTRFS_PROGS_CONF_OPTS += --enable-libudev
BTRFS_PROGS_DEPENDENCIES += udev