From: Adam Duskett Date: Sat, 25 Jul 2020 23:06:09 +0000 (-0700) Subject: package/libblockdev: add support for crypto plugin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c45cce332a93b45ed7a68eed210b9f4662d877b9;p=buildroot.git package/libblockdev: add support for crypto plugin Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in index 4e85b82ce2..f7a220603c 100644 --- a/package/libblockdev/Config.in +++ b/package/libblockdev/Config.in @@ -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 || \ diff --git a/package/libblockdev/libblockdev.mk b/package/libblockdev/libblockdev.mk index 221a698386..67d9ab4483 100644 --- a/package/libblockdev/libblockdev.mk +++ b/package/libblockdev/libblockdev.mk @@ -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))