blob: a44c0bc87afd0c66960bee24b51c09bd3d0c173b [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "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
10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
12SECTION = "base"
Brad Bishop79641f22019-09-10 07:20:22 -040013DEPENDS = "util-linux attr e2fsprogs lzo acl"
Brad Bishopc342db32019-05-15 21:57:59 -040014DEPENDS_append_class-target = " udev"
15RDEPENDS_${PN} = "libgcc"
16
Brad Bishop6dbb3162019-11-25 09:41:34 -050017SRCREV = "f82e569b33c3c1cfd4f8f405085ff8d439a0a915"
Brad Bishopc342db32019-05-15 21:57:59 -040018SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
Brad Bishopc342db32019-05-15 21:57:59 -040019 file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \
20 "
21
Brad Bishop79641f22019-09-10 07:20:22 -040022PACKAGECONFIG ??= "python"
23PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native"
24PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native"
25PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
26
27inherit autotools-brokensep pkgconfig manpages
28inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)}
Brad Bishopc342db32019-05-15 21:57:59 -040029
30CLEANBROKEN = "1"
31
Brad Bishopc342db32019-05-15 21:57:59 -040032EXTRA_OECONF_append_libc-musl = " --disable-backtrace "
Brad Bishop15ae2502019-06-18 21:44:24 -040033EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}"
34EXTRA_PYTHON_CFLAGS_class-native = ""
35EXTRA_PYTHON_LDFLAGS = "${LDFLAGS}"
36EXTRA_OEMAKE = "V=1 'EXTRA_PYTHON_CFLAGS=${EXTRA_PYTHON_CFLAGS}' 'EXTRA_PYTHON_LDFLAGS=${EXTRA_PYTHON_LDFLAGS}'"
Brad Bishopc342db32019-05-15 21:57:59 -040037
38do_configure_prepend() {
39 # Upstream doesn't ship this and autoreconf won't install it as automake isn't used.
40 mkdir -p ${S}/config
41 cp -f $(automake --print-libdir)/install-sh ${S}/config/
42}
43
44S = "${WORKDIR}/git"
45
46do_install_append() {
Brad Bishop79641f22019-09-10 07:20:22 -040047 if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
48 oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python
49 fi
Brad Bishopc342db32019-05-15 21:57:59 -040050}
51
52BBCLASSEXTEND = "native"