package/libblockdev: add support for mdraid plugin
authorAdam Duskett <Aduskett@gmail.com>
Sat, 25 Jul 2020 23:06:13 +0000 (16:06 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 29 Aug 2020 19:47:21 +0000 (21:47 +0200)
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libblockdev/Config.in
package/libblockdev/libblockdev.mk

index 732ac410b09a1a361c92c0144a21ece99babdfa1..26e23b3145e0a3ef8e6b4f25b6161fff5419289a 100644 (file)
@@ -45,6 +45,10 @@ config BR2_PACKAGE_LIBBLOCKDEV_LVM2
 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"
index b0b0852e8def10271e0513f91bb8ea8ba5815c5d..3873554a4556f3d02609db3407f105909c8593cc 100644 (file)
@@ -23,7 +23,6 @@ LIBBLOCKDEV_CONF_OPTS = \
        --without-escrow \
        --without-kbd \
        --without-lvm_dbus \
-       --without-mdraid \
        --without-mpath \
        --without-nvdimm \
        --without-part \
@@ -61,4 +60,11 @@ else
 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))