cryptsetup: add host variant

E.G. for generating dm-verity hashes or dm-crypt data at build time in a
post-image script.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2017-10-05 17:06:21 +02:00
parent 90cfc5f16a
commit 456cd09fb9
3 changed files with 19 additions and 0 deletions

View File

@ -6,6 +6,7 @@ menu "Host utilities"
source "package/checkpolicy/Config.in.host"
source "package/cmake/Config.in.host"
source "package/cramfs/Config.in.host"
source "package/cryptsetup/Config.in.host"
source "package/dfu-util/Config.in.host"
source "package/dos2unix/Config.in.host"
source "package/dosfstools/Config.in.host"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_HOST_CRYPTSETUP
bool "host-cryptsetup"
select BR2_PACKAGE_HOST_UTIL_LINUX
help
This tool helps manipulate dm-crypt and luks partitions for
on-disk encryption.
https://gitlab.com/cryptsetup/cryptsetup

View File

@ -28,4 +28,14 @@ else
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
endif
HOST_CRYPTSETUP_DEPENDENCIES = \
host-pkgconf \
host-lvm2 \
host-popt \
host-util-linux \
host-openssl
HOST_CRYPTSETUP_CONF_OPTS = --with-crypto-backend=openssl
$(eval $(autotools-package))
$(eval $(host-autotools-package))