btrfs-tools_6.14.bb 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. HOMEPAGE = "https://btrfs.wiki.kernel.org"
  8. LICENSE = "GPL-2.0-only & LGPL-2.1-or-later"
  9. LIC_FILES_CHKSUM = " \
  10. file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067 \
  11. file://libbtrfsutil/COPYING;md5=4fbd65380cdd255951079008b364516c \
  12. "
  13. SECTION = "base"
  14. DEPENDS = "util-linux zlib"
  15. SRC_URI = "git://github.com/kdave/btrfs-progs.git;branch=master;protocol=https;tag=v${PV} \
  16. file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \
  17. "
  18. SRCREV = "5ad147c9ec00e657393c85b195c9bcc0f4c35a54"
  19. S = "${WORKDIR}/git"
  20. PACKAGECONFIG ??= " \
  21. programs \
  22. convert \
  23. python \
  24. crypto-builtin \
  25. "
  26. PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, python3-sphinx-native python3-sphinx-rtd-theme-native"
  27. PACKAGECONFIG[programs] = "--enable-programs,--disable-programs"
  28. PACKAGECONFIG[convert] = "--enable-convert --with-convert=ext2,--disable-convert --without-convert,e2fsprogs"
  29. PACKAGECONFIG[zoned] = "--enable-zoned,--disable-zoned"
  30. PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native"
  31. PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo"
  32. PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
  33. PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
  34. # Pick only one crypto provider
  35. PACKAGECONFIG[crypto-builtin] = "--with-crypto=builtin"
  36. PACKAGECONFIG[crypto-libgcrypt] = "--with-crypto=libgcrypt,,libgcrypt"
  37. PACKAGECONFIG[crypto-libsodium] = "--with-crypto=libsodium,,libsodium"
  38. PACKAGECONFIG[crypto-libkcapi] = "--with-crypto=libkcapi,,libkcapi"
  39. inherit autotools-brokensep pkgconfig manpages
  40. inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3-base', '', d)}
  41. CLEANBROKEN = "1"
  42. EXTRA_OECONF = "--enable-largefile"
  43. EXTRA_OECONF:append:libc-musl = " --disable-backtrace "
  44. EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}"
  45. EXTRA_PYTHON_CFLAGS:class-native = ""
  46. EXTRA_PYTHON_LDFLAGS = "${LDFLAGS}"
  47. EXTRA_OEMAKE = "V=1 'EXTRA_PYTHON_CFLAGS=${EXTRA_PYTHON_CFLAGS}' 'EXTRA_PYTHON_LDFLAGS=${EXTRA_PYTHON_LDFLAGS}'"
  48. do_configure:prepend() {
  49. # Upstream doesn't ship this and autoreconf won't install it as automake isn't used.
  50. mkdir -p ${S}/config
  51. cp -f $(automake --print-libdir)/install-sh ${S}/config/
  52. }
  53. do_install:append() {
  54. if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
  55. oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python
  56. fi
  57. }
  58. RDEPENDS:${PN} = "libgcc"
  59. BBCLASSEXTEND = "native nativesdk"