cryptsetup: add host variant
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 5 Oct 2017 15:06:21 +0000 (17:06 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 5 Oct 2017 20:45:46 +0000 (22:45 +0200)
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>
package/Config.in.host
package/cryptsetup/Config.in.host [new file with mode: 0644]
package/cryptsetup/cryptsetup.mk

index 679fe22a520b42b9da3f012d3029550afc406e6e..3755310de4e190d9373441b37e2bfa3f0fd4b4f0 100644 (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"
diff --git a/package/cryptsetup/Config.in.host b/package/cryptsetup/Config.in.host
new file mode 100644 (file)
index 0000000..7060ed1
--- /dev/null
@@ -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
index 5496583028763493a44dd6d0d7d2510b173cd855..6b0fa318aadd5a6da607d11888a5388f8d86f05d 100644 (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))