Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
https://github.com/storaged-project/libblockdev/
+if BR2_PACKAGE_LIBBLOCKDEV
+
+comment "plugins"
+
+config BR2_PACKAGE_LIBBLOCKDEV_CRYPTO
+ bool "crypto"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
+ select BR2_PACKAGE_CRYPTSETUP
+
+endif
+
comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_PACKAGE_HAS_UDEV || BR2_STATIC_LIBS || \
--with-loop \
--without-bcache \
--without-btrfs \
- --without-crypto \
--without-dm \
--without-dmraid \
--without-escrow \
--without-tools \
--without-vdo
+ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_CRYPTO),y)
+LIBBLOCKDEV_DEPENDENCIES += cryptsetup
+LIBBLOCKDEV_CONF_OPTS += --with-crypto
+else
+LIBBLOCKDEV_CONF_OPTS += --without-crypto
+endif
+
$(eval $(autotools-package))