diff mbox series

[2/2] cryptsetup: add host variant

Message ID 20171005150621.19570-2-peter@korsgaard.com
State Accepted
Commit 456cd09fb92f13ce592e470056d50a753b0407cc
Headers show
Series None | expand

Commit Message

Peter Korsgaard Oct. 5, 2017, 3:06 p.m. UTC
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            |  1 +
 package/cryptsetup/Config.in.host |  8 ++++++++
 package/cryptsetup/cryptsetup.mk  | 10 ++++++++++
 3 files changed, 19 insertions(+)
 create mode 100644 package/cryptsetup/Config.in.host

Comments

Peter Korsgaard Oct. 5, 2017, 8:45 p.m. UTC | #1
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > 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>

Committed, thanks.
diff mbox series

Patch

diff --git a/package/Config.in.host b/package/Config.in.host
index 679fe22a52..3755310de4 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -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
index 0000000000..7060ed16a9
--- /dev/null
+++ b/package/cryptsetup/Config.in.host
@@ -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
diff --git a/package/cryptsetup/cryptsetup.mk b/package/cryptsetup/cryptsetup.mk
index 5496583028..6b0fa318aa 100644
--- a/package/cryptsetup/cryptsetup.mk
+++ b/package/cryptsetup/cryptsetup.mk
@@ -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))