xref: /OK3568_Linux_fs/buildroot/package/libblockdev/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV
2*4882a593Smuzhiyun	bool "libblockdev"
3*4882a593Smuzhiyun	depends on !BR2_STATIC_LIBS # kmod
4*4882a593Smuzhiyun	depends on BR2_USE_WCHAR # libglib2
5*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
6*4882a593Smuzhiyun	depends on BR2_USE_MMU # libglib2
7*4882a593Smuzhiyun	depends on BR2_PACKAGE_HAS_UDEV
8*4882a593Smuzhiyun	select BR2_PACKAGE_KMOD
9*4882a593Smuzhiyun	select BR2_PACKAGE_LIBGLIB2
10*4882a593Smuzhiyun	help
11*4882a593Smuzhiyun	  libblockdev is a C library supporting GObject introspection
12*4882a593Smuzhiyun	  for manipulation of block devices. It has a plugin-based
13*4882a593Smuzhiyun	  architecture where each technology (like LVM, Btrfs, MD RAID,
14*4882a593Smuzhiyun	  Swap,...) is implemented in a separate plugin, possibly with
15*4882a593Smuzhiyun	  multiple implementations.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun	  https://github.com/storaged-project/libblockdev/
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunif BR2_PACKAGE_LIBBLOCKDEV
20*4882a593Smuzhiyun
21*4882a593Smuzhiyuncomment "plugins"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_CRYPTO
24*4882a593Smuzhiyun	bool "crypto"
25*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
26*4882a593Smuzhiyun	select BR2_PACKAGE_CRYPTSETUP
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_FS
29*4882a593Smuzhiyun	bool "filesystem"
30*4882a593Smuzhiyun	depends on BR2_ENABLE_LOCALE # parted
31*4882a593Smuzhiyun	select BR2_PACKAGE_UTIL_LINUX
32*4882a593Smuzhiyun	select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
33*4882a593Smuzhiyun	select BR2_PACKAGE_PARTED
34*4882a593Smuzhiyun
35*4882a593Smuzhiyuncomment "filesystem plugin needs a toolchain w/ locale"
36*4882a593Smuzhiyun	depends on !BR2_ENABLE_LOCALE
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_LOOP
39*4882a593Smuzhiyun	bool "loop"
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_LVM2
42*4882a593Smuzhiyun	bool "lvm2"
43*4882a593Smuzhiyun	depends on BR2_ENABLE_LOCALE # parted
44*4882a593Smuzhiyun	select BR2_PACKAGE_PARTED
45*4882a593Smuzhiyun	select BR2_PACKAGE_LVM2
46*4882a593Smuzhiyun
47*4882a593Smuzhiyuncomment "lvm2 support needs a toolchain w/ locale"
48*4882a593Smuzhiyun	depends on !BR2_ENABLE_LOCALE
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_MDRAID
51*4882a593Smuzhiyun	bool "mdraid"
52*4882a593Smuzhiyun	select BR2_PACKAGE_LIBBYTESIZE
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_PART
55*4882a593Smuzhiyun	bool "part"
56*4882a593Smuzhiyun	depends on BR2_ENABLE_LOCALE # parted
57*4882a593Smuzhiyun	select BR2_PACKAGE_PARTED
58*4882a593Smuzhiyun
59*4882a593Smuzhiyuncomment "part plugin needs a toolchain w/ locale"
60*4882a593Smuzhiyun	depends on !BR2_ENABLE_LOCALE
61*4882a593Smuzhiyun
62*4882a593Smuzhiyunconfig BR2_PACKAGE_LIBBLOCKDEV_SWAP
63*4882a593Smuzhiyun	bool "swap"
64*4882a593Smuzhiyun	select BR2_PACKAGE_UTIL_LINUX
65*4882a593Smuzhiyun	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
66*4882a593Smuzhiyun
67*4882a593Smuzhiyunendif
68*4882a593Smuzhiyun
69*4882a593Smuzhiyuncomment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library"
70*4882a593Smuzhiyun	depends on BR2_USE_MMU
71*4882a593Smuzhiyun	depends on !BR2_PACKAGE_HAS_UDEV || BR2_STATIC_LIBS || \
72*4882a593Smuzhiyun		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
73