blob: 3fc959bf8e0fb9635a271b2291630e9a162e4e73 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Checksumming Copy on Write Filesystem utilities"
2DESCRIPTION = "Btrfs is a new copy on write filesystem for Linux aimed at \
3implementing advanced features while focusing on fault tolerance, repair and \
4easy administration. \
5This package contains utilities (mkfs, fsck, btrfsctl) used to work with \
6btrfs and an utility (btrfs-convert) to make a btrfs filesystem from an ext3."
7
8HOMEPAGE = "https://btrfs.wiki.kernel.org"
9
William A. Kennington IIIac69b482021-06-02 12:28:27 -070010LICENSE = "GPLv2 & LGPLv2.1+"
Andrew Geisslerc926e172021-05-07 16:11:35 -050011LIC_FILES_CHKSUM = " \
12 file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067 \
William A. Kennington IIIac69b482021-06-02 12:28:27 -070013 file://libbtrfsutil/COPYING;md5=4fbd65380cdd255951079008b364516c \
Andrew Geisslerc926e172021-05-07 16:11:35 -050014"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015SECTION = "base"
Andrew Geisslerc926e172021-05-07 16:11:35 -050016DEPENDS = "lzo util-linux zlib"
Andrew Geissler82c905d2020-04-13 13:39:40 -050017DEPENDS_append_class-target = " udev"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
Andrew Geissler82c905d2020-04-13 13:39:40 -050019SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
20 file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \
21 "
William A. Kennington IIIac69b482021-06-02 12:28:27 -070022SRCREV = "96d77fcefdd3b9fd297b5aabbce6dc43e2315ee2"
Andrew Geisslerc926e172021-05-07 16:11:35 -050023S = "${WORKDIR}/git"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
Andrew Geisslerc926e172021-05-07 16:11:35 -050025PACKAGECONFIG ??= " \
26 programs \
27 convert \
28 python \
29 crypto-builtin \
30"
Andrew Geissler82c905d2020-04-13 13:39:40 -050031PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native"
Andrew Geisslerc926e172021-05-07 16:11:35 -050032PACKAGECONFIG[programs] = "--enable-programs,--disable-programs"
33PACKAGECONFIG[convert] = "--enable-convert --with-convert=ext2,--disable-convert --without-convert,e2fsprogs"
William A. Kennington IIIac69b482021-06-02 12:28:27 -070034PACKAGECONFIG[zoned] = "--enable-zoned,--disable-zoned"
Andrew Geissler82c905d2020-04-13 13:39:40 -050035PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native"
36PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
37
Andrew Geisslerc926e172021-05-07 16:11:35 -050038# Pick only one crypto provider
39PACKAGECONFIG[crypto-builtin] = "--with-crypto=builtin"
40PACKAGECONFIG[crypto-libgcrypt] = "--with-crypto=libgcrypt,,libgcrypt"
41PACKAGECONFIG[crypto-libsodium] = "--with-crypto=libsodium,,libsodium"
42PACKAGECONFIG[crypto-libkcapi] = "--with-crypto=libkcapi,,libkcapi"
43
Andrew Geissler82c905d2020-04-13 13:39:40 -050044inherit autotools-brokensep pkgconfig manpages
45inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)}
46
47CLEANBROKEN = "1"
48
Andrew Geisslerc926e172021-05-07 16:11:35 -050049EXTRA_OECONF = "--enable-largefile"
Andrew Geissler82c905d2020-04-13 13:39:40 -050050EXTRA_OECONF_append_libc-musl = " --disable-backtrace "
51EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}"
52EXTRA_PYTHON_CFLAGS_class-native = ""
53EXTRA_PYTHON_LDFLAGS = "${LDFLAGS}"
54EXTRA_OEMAKE = "V=1 'EXTRA_PYTHON_CFLAGS=${EXTRA_PYTHON_CFLAGS}' 'EXTRA_PYTHON_LDFLAGS=${EXTRA_PYTHON_LDFLAGS}'"
55
56do_configure_prepend() {
57 # Upstream doesn't ship this and autoreconf won't install it as automake isn't used.
58 mkdir -p ${S}/config
59 cp -f $(automake --print-libdir)/install-sh ${S}/config/
60}
61
Andrew Geissler82c905d2020-04-13 13:39:40 -050062
63do_install_append() {
64 if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
65 oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python
66 fi
67}
68
Andrew Geisslerc926e172021-05-07 16:11:35 -050069RDEPENDS_${PN} = "libgcc"
70
Andrew Geissler5a43b432020-06-13 10:46:56 -050071BBCLASSEXTEND = "native nativesdk"