2014-04-29 19:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# btrfs-progs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-08-23 14:38:17 +02:00
|
|
|
BTRFS_PROGS_VERSION = 4.17.1
|
2015-04-29 21:17:20 +02:00
|
|
|
BTRFS_PROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/kdave/btrfs-progs
|
2014-04-29 19:17:14 +02:00
|
|
|
BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
|
2018-08-21 23:59:54 +02:00
|
|
|
BTRFS_PROGS_DEPENDENCIES = host-pkgconf lzo util-linux zlib
|
2018-04-11 06:45:16 +02:00
|
|
|
BTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-zstd --disable-python
|
|
|
|
BTRFS_PROGS_LICENSE = GPL-2.0, LGPL-3.0+ (libbtrfsutil)
|
|
|
|
BTRFS_PROGS_LICENSE_FILES = COPYING libbtrfsutil/COPYING \
|
|
|
|
libbtrfsutil/COPYING.LESSER
|
2016-07-24 23:10:27 +02:00
|
|
|
BTRFS_PROGS_INSTALL_STAGING = YES
|
2014-04-29 19:17:14 +02:00
|
|
|
|
2015-03-11 20:49:28 +01:00
|
|
|
# Doesn't autodetect static-only and tries to build both
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-11 20:49:28 +01:00
|
|
|
BTRFS_PROGS_MAKE_OPTS = static
|
|
|
|
BTRFS_PROGS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
|
2016-07-24 23:10:27 +02:00
|
|
|
BTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
|
2014-08-30 14:51:44 +02:00
|
|
|
endif
|
|
|
|
|
2018-08-21 23:59:54 +02:00
|
|
|
# convert also supports conversion from reiserfs, which needs some
|
|
|
|
# reiserfs libraries, but we have no package for them in Buildroot, so
|
|
|
|
# we keep things simple and only handle ext2.
|
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS),y)
|
|
|
|
BTRFS_PROGS_CONF_OPTS += --enable-convert --with-convert=ext2
|
|
|
|
BTRFS_PROGS_DEPENDENCIES += e2fsprogs
|
|
|
|
else
|
|
|
|
BTRFS_PROGS_CONF_OPTS += --disable-convert
|
|
|
|
endif
|
|
|
|
|
2018-08-21 23:59:53 +02:00
|
|
|
HOST_BTRFS_PROGS_DEPENDENCIES = host-util-linux host-lzo host-zlib
|
|
|
|
HOST_BTRFS_PROGS_CONF_OPTS = \
|
|
|
|
--disable-backtrace \
|
|
|
|
--disable-zstd \
|
|
|
|
--disable-python \
|
|
|
|
--disable-convert
|
2018-08-21 18:04:11 +02:00
|
|
|
|
2015-03-11 20:49:28 +01:00
|
|
|
$(eval $(autotools-package))
|
2018-08-21 18:04:11 +02:00
|
|
|
$(eval $(host-autotools-package))
|