diff --git a/package/btrfs-progs/btrfs-progs.mk b/package/btrfs-progs/btrfs-progs.mk index 4c26cf0df5..b010a0e0be 100644 --- a/package/btrfs-progs/btrfs-progs.mk +++ b/package/btrfs-progs/btrfs-progs.mk @@ -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