1################################################################################ 2# 3# btrfs-progs 4# 5################################################################################ 6 7BTRFS_PROGS_VERSION = 5.11 8BTRFS_PROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/kdave/btrfs-progs 9BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz 10BTRFS_PROGS_DEPENDENCIES = host-pkgconf lzo util-linux zlib 11BTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-zstd --disable-python 12BTRFS_PROGS_LICENSE = GPL-2.0, LGPL-3.0+ (libbtrfsutil) 13BTRFS_PROGS_LICENSE_FILES = COPYING libbtrfsutil/COPYING \ 14 libbtrfsutil/COPYING.LESSER 15BTRFS_PROGS_INSTALL_STAGING = YES 16 17# Doesn't autodetect static-only and tries to build both 18ifeq ($(BR2_STATIC_LIBS),y) 19BTRFS_PROGS_MAKE_OPTS = static 20BTRFS_PROGS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static 21BTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static 22endif 23 24# convert also supports conversion from reiserfs, which needs some 25# reiserfs libraries, but we have no package for them in Buildroot, so 26# we keep things simple and only handle ext2. 27ifeq ($(BR2_PACKAGE_E2FSPROGS),y) 28BTRFS_PROGS_CONF_OPTS += --enable-convert --with-convert=ext2 29BTRFS_PROGS_DEPENDENCIES += e2fsprogs 30else 31BTRFS_PROGS_CONF_OPTS += --disable-convert 32endif 33 34HOST_BTRFS_PROGS_DEPENDENCIES = host-util-linux host-lzo host-zlib 35HOST_BTRFS_PROGS_CONF_OPTS = \ 36 --disable-backtrace \ 37 --disable-zstd \ 38 --disable-python \ 39 --disable-convert 40 41$(eval $(autotools-package)) 42$(eval $(host-autotools-package)) 43