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