Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
config BR2_PACKAGE_LIBBLOCKDEV_LOOP
bool "loop"
+config BR2_PACKAGE_LIBBLOCKDEV_LVM2
+ bool "lvm2"
+ depends on BR2_ENABLE_LOCALE # parted
+ select BR2_PACKAGE_PARTED
+ select BR2_PACKAGE_LVM2
+
+comment "lvm2 support needs a toolchain w/ locale"
+ depends on !BR2_ENABLE_LOCALE
+
endif
comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library"
--without-dmraid \
--without-escrow \
--without-kbd \
- --without-lvm \
--without-lvm_dbus \
--without-mdraid \
--without-mpath \
LIBBLOCKDEV_CONF_OPTS += --without-loop
endif
+ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LVM2),y)
+LIBBLOCKDEV_DEPENDENCIES += lvm2 parted
+LIBBLOCKDEV_CONF_OPTS += --with-lvm
+else
+LIBBLOCKDEV_CONF_OPTS += --without-lvm
+endif
+
$(eval $(autotools-package))