xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/libblockdev/libblockdev_2.26.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "libblockdev is a C library supporting GObject introspection for manipulation of \
2*4882a593Smuzhiyunblock devices. It has a plugin-based architecture where each technology (like \
3*4882a593SmuzhiyunLVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly \
4*4882a593Smuzhiyunwith multiple implementations (e.g. using LVM CLI or the new LVM DBus API)."
5*4882a593SmuzhiyunHOMEPAGE = "http://rhinstaller.github.io/libblockdev/"
6*4882a593SmuzhiyunLICENSE = "LGPL-2.0-or-later"
7*4882a593SmuzhiyunSECTION = "devel/lib"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit autotools gobject-introspection pkgconfig
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "git://github.com/storaged-project/libblockdev;branch=2.x-branch;protocol=https \
14*4882a593Smuzhiyun           file://0001-lvm-Do-not-include-duplicate-entries-in-bd_lvm_lvs-o.patch \
15*4882a593Smuzhiyun"
16*4882a593SmuzhiyunSRCREV = "47ff12242c89e36a33259d18b7068b26c3bb1c64"
17*4882a593SmuzhiyunS = "${WORKDIR}/git"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunFILES:${PN} += "${libdir}/python2.7/dist-packages ${libdir}/python3.*/site-packages"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunPACKAGECONFIG ??= "python3 lvm dm kmod parted fs escrow btrfs crypto mdraid kbd mpath nvdimm"
22*4882a593SmuzhiyunPACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3"
23*4882a593SmuzhiyunPACKAGECONFIG[python2] = "--with-python2, --without-python2,,python"
24*4882a593SmuzhiyunPACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools, lvm2"
25*4882a593SmuzhiyunPACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools, lvm2"
26*4882a593SmuzhiyunPACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2"
27*4882a593SmuzhiyunPACKAGECONFIG[dmraid] = "--with-dmraid, --without-dmraid"
28*4882a593SmuzhiyunPACKAGECONFIG[kmod] = "--with-kbd, --without-kbd, kmod"
29*4882a593SmuzhiyunPACKAGECONFIG[parted] = "--with-part, --without-part, parted"
30*4882a593SmuzhiyunPACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux"
31*4882a593SmuzhiyunPACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native"
32*4882a593SmuzhiyunPACKAGECONFIG[nvdimm] = "--with-nvdimm, --without-nvdimm, ndctl util-linux"
33*4882a593SmuzhiyunPACKAGECONFIG[vdo] = "--with-vdo, --without-vdo"
34*4882a593SmuzhiyunPACKAGECONFIG[escrow] = "--with-escrow, --without-escrow, nss volume-key"
35*4882a593SmuzhiyunPACKAGECONFIG[btrfs] = "--with-btrfs,--without-btrfs,libbytesize btrfs-tools"
36*4882a593SmuzhiyunPACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup nss volume-key"
37*4882a593SmuzhiyunPACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize"
38*4882a593SmuzhiyunPACKAGECONFIG[kbd] = "--with-kbd,--without-kbd,libbytesize"
39*4882a593SmuzhiyunPACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2"
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunexport GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs"
42