xref: /OK3568_Linux_fs/buildroot/package/btrfs-progs/btrfs-progs.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# btrfs-progs
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBTRFS_PROGS_VERSION = 5.11
8*4882a593SmuzhiyunBTRFS_PROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/kdave/btrfs-progs
9*4882a593SmuzhiyunBTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
10*4882a593SmuzhiyunBTRFS_PROGS_DEPENDENCIES = host-pkgconf lzo util-linux zlib
11*4882a593SmuzhiyunBTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-zstd --disable-python
12*4882a593SmuzhiyunBTRFS_PROGS_LICENSE = GPL-2.0, LGPL-3.0+ (libbtrfsutil)
13*4882a593SmuzhiyunBTRFS_PROGS_LICENSE_FILES = COPYING libbtrfsutil/COPYING \
14*4882a593Smuzhiyun	libbtrfsutil/COPYING.LESSER
15*4882a593SmuzhiyunBTRFS_PROGS_INSTALL_STAGING = YES
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# Doesn't autodetect static-only and tries to build both
18*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
19*4882a593SmuzhiyunBTRFS_PROGS_MAKE_OPTS = static
20*4882a593SmuzhiyunBTRFS_PROGS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
21*4882a593SmuzhiyunBTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
22*4882a593Smuzhiyunendif
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun# convert also supports conversion from reiserfs, which needs some
25*4882a593Smuzhiyun# reiserfs libraries, but we have no package for them in Buildroot, so
26*4882a593Smuzhiyun# we keep things simple and only handle ext2.
27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_E2FSPROGS),y)
28*4882a593SmuzhiyunBTRFS_PROGS_CONF_OPTS += --enable-convert --with-convert=ext2
29*4882a593SmuzhiyunBTRFS_PROGS_DEPENDENCIES += e2fsprogs
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunBTRFS_PROGS_CONF_OPTS += --disable-convert
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunHOST_BTRFS_PROGS_DEPENDENCIES = host-util-linux host-lzo host-zlib
35*4882a593SmuzhiyunHOST_BTRFS_PROGS_CONF_OPTS = \
36*4882a593Smuzhiyun	--disable-backtrace \
37*4882a593Smuzhiyun	--disable-zstd \
38*4882a593Smuzhiyun	--disable-python \
39*4882a593Smuzhiyun	--disable-convert
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun$(eval $(autotools-package))
42*4882a593Smuzhiyun$(eval $(host-autotools-package))
43