package/libblockdev: add support for fs plugin
authorAdam Duskett <Aduskett@gmail.com>
Sat, 25 Jul 2020 23:06:10 +0000 (16:06 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 29 Aug 2020 19:44:37 +0000 (21:44 +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 f7a220603c30cbbfd64196c0eb68b5611d7faab5..8ef7247262f32d5a5a58728f3b81bc2f140e2589 100644 (file)
@@ -25,6 +25,14 @@ config BR2_PACKAGE_LIBBLOCKDEV_CRYPTO
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
        select BR2_PACKAGE_CRYPTSETUP
 
+config BR2_PACKAGE_LIBBLOCKDEV_FS
+       bool "filesystem"
+       depends on BR2_ENABLE_LOCALE # parted
+       select BR2_PACKAGE_PARTED
+
+comment "filesystem plugin 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"
index 67d9ab4483c6c4ffaeaac6d8d6d7057f4fd62390..2b111df82b0c34dd43063d12a5870bde1cd7e8fd 100644 (file)
@@ -21,7 +21,6 @@ LIBBLOCKDEV_CONF_OPTS = \
        --without-dm \
        --without-dmraid \
        --without-escrow \
-       --without-fs \
        --without-kbd \
        --without-loop \
        --without-lvm \
@@ -44,4 +43,11 @@ else
 LIBBLOCKDEV_CONF_OPTS += --without-crypto
 endif
 
+ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_FS),y)
+LIBBLOCKDEV_DEPENDENCIES += parted
+LIBBLOCKDEV_CONF_OPTS += --with-fs
+else
+LIBBLOCKDEV_CONF_OPTS += --without-fs
+endif
+
 $(eval $(autotools-package))