package/libblockdev: add support for crypto plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Adam Duskett 2020-07-25 16:06:09 -07:00 committed by Thomas Petazzoni
parent bf87263b6d
commit c45cce332a
2 changed files with 18 additions and 1 deletions

View File

@ -16,6 +16,17 @@ config BR2_PACKAGE_LIBBLOCKDEV
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 || \

View File

@ -18,7 +18,6 @@ LIBBLOCKDEV_CONF_OPTS = \
--with-loop \
--without-bcache \
--without-btrfs \
--without-crypto \
--without-dm \
--without-dmraid \
--without-escrow \
@ -38,4 +37,11 @@ LIBBLOCKDEV_CONF_OPTS = \
--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))