diff options
| author | Robert Joslyn <robert.joslyn@redrectangle.org> | 2021-05-11 21:17:17 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-13 11:34:15 +0100 |
| commit | 899da712ae213bff2405e7670bdff9927633114e (patch) | |
| tree | c485123ce97a7f056f2e5760202111f7f8739aa5 /meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb | |
| parent | e7ce28c8b060fc4fc84fe328275bbca87d17a3f0 (diff) | |
| download | poky-899da712ae213bff2405e7670bdff9927633114e.tar.gz | |
btrfs-tools: Update to 5.12
Add PACKAGECONFIG for zoned block devices. Leave disabled by default, as
this requires a recent kernel.
License-Update: libbtrfsutil was relicensed to LGPLv2.1+: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=9e30f779e3cbf12a88ebe309ee371851fdfd3aa0
(From OE-Core rev: d10b62f54c6e0f19af02bab024680462d9e4418a)
Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb')
| -rw-r--r-- | meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb new file mode 100644 index 0000000000..8a809427f5 --- /dev/null +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.12.bb | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | SUMMARY = "Checksumming Copy on Write Filesystem utilities" | ||
| 2 | DESCRIPTION = "Btrfs is a new copy on write filesystem for Linux aimed at \ | ||
| 3 | implementing advanced features while focusing on fault tolerance, repair and \ | ||
| 4 | easy administration. \ | ||
| 5 | This package contains utilities (mkfs, fsck, btrfsctl) used to work with \ | ||
| 6 | btrfs and an utility (btrfs-convert) to make a btrfs filesystem from an ext3." | ||
| 7 | |||
| 8 | HOMEPAGE = "https://btrfs.wiki.kernel.org" | ||
| 9 | |||
| 10 | LICENSE = "GPLv2 & LGPLv2.1+" | ||
| 11 | LIC_FILES_CHKSUM = " \ | ||
| 12 | file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067 \ | ||
| 13 | file://libbtrfsutil/COPYING;md5=4fbd65380cdd255951079008b364516c \ | ||
| 14 | " | ||
| 15 | SECTION = "base" | ||
| 16 | DEPENDS = "lzo util-linux zlib" | ||
| 17 | DEPENDS_append_class-target = " udev" | ||
| 18 | |||
| 19 | SRC_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 | " | ||
| 22 | SRCREV = "b16b0a766f06138de2ee32d4d84b7110e469ff49" | ||
| 23 | S = "${WORKDIR}/git" | ||
| 24 | |||
| 25 | PACKAGECONFIG ??= " \ | ||
| 26 | programs \ | ||
| 27 | convert \ | ||
| 28 | python \ | ||
| 29 | crypto-builtin \ | ||
| 30 | " | ||
| 31 | PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native" | ||
| 32 | PACKAGECONFIG[programs] = "--enable-programs,--disable-programs" | ||
| 33 | PACKAGECONFIG[convert] = "--enable-convert --with-convert=ext2,--disable-convert --without-convert,e2fsprogs" | ||
| 34 | PACKAGECONFIG[zoned] = "--enable-zoned,--disable-zoned" | ||
| 35 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native" | ||
| 36 | PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" | ||
| 37 | |||
| 38 | # Pick only one crypto provider | ||
| 39 | PACKAGECONFIG[crypto-builtin] = "--with-crypto=builtin" | ||
| 40 | PACKAGECONFIG[crypto-libgcrypt] = "--with-crypto=libgcrypt,,libgcrypt" | ||
| 41 | PACKAGECONFIG[crypto-libsodium] = "--with-crypto=libsodium,,libsodium" | ||
| 42 | PACKAGECONFIG[crypto-libkcapi] = "--with-crypto=libkcapi,,libkcapi" | ||
| 43 | |||
| 44 | inherit autotools-brokensep pkgconfig manpages | ||
| 45 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)} | ||
| 46 | |||
| 47 | CLEANBROKEN = "1" | ||
| 48 | |||
| 49 | EXTRA_OECONF = "--enable-largefile" | ||
| 50 | EXTRA_OECONF_append_libc-musl = " --disable-backtrace " | ||
| 51 | EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}" | ||
| 52 | EXTRA_PYTHON_CFLAGS_class-native = "" | ||
| 53 | EXTRA_PYTHON_LDFLAGS = "${LDFLAGS}" | ||
| 54 | EXTRA_OEMAKE = "V=1 'EXTRA_PYTHON_CFLAGS=${EXTRA_PYTHON_CFLAGS}' 'EXTRA_PYTHON_LDFLAGS=${EXTRA_PYTHON_LDFLAGS}'" | ||
| 55 | |||
| 56 | do_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 | |||
| 62 | |||
| 63 | do_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 | |||
| 69 | RDEPENDS_${PN} = "libgcc" | ||
| 70 | |||
| 71 | BBCLASSEXTEND = "native nativesdk" | ||
