summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2019-02-08 10:12:19 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-13 08:56:45 +0100
commitf817a165eb5203372e8eb7d5d997afe2227a3185 (patch)
treea105b1f068cb0f5ea5b29ab963ad2fb2d68a15fb
parent2d8fe599d1f0ce8336807ecf3e43b9e7e3fe84dc (diff)
downloadptxdist-f817a165eb5203372e8eb7d5d997afe2227a3185.tar.gz
ptxdist-f817a165eb5203372e8eb7d5d997afe2227a3185.tar.xz
host-cryptsetup: new package
This is useful for offline hash data creation for dm-verity based filesystems with veritysetup. Everything else is disabled for now. openssl is used as crypto backend because host-openssl is enabled in most cases anyway. Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-cryptsetup.in11
-rw-r--r--rules/host-cryptsetup.make48
2 files changed, 59 insertions, 0 deletions
diff --git a/rules/host-cryptsetup.in b/rules/host-cryptsetup.in
new file mode 100644
index 000000000..2ccfbe420
--- /dev/null
+++ b/rules/host-cryptsetup.in
@@ -0,0 +1,11 @@
+## SECTION=hosttools_noprompt
+
+config HOST_CRYPTSETUP
+ tristate
+ default y if ALLYES
+ select HOST_JSON_C
+ select HOST_LVM2
+ select HOST_LIBUUID
+ select HOST_LIBPOPT
+ select HOST_LIBBLKID
+ select HOST_OPENSSL
diff --git a/rules/host-cryptsetup.make b/rules/host-cryptsetup.make
new file mode 100644
index 000000000..e2d0c2d62
--- /dev/null
+++ b/rules/host-cryptsetup.make
@@ -0,0 +1,48 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Bastian Krause <bst@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_CRYPTSETUP) += host-cryptsetup
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_CRYPTSETUP_CONF_TOOL := autoconf
+HOST_CRYPTSETUP_CONF_OPT := \
+ $(HOST_AUTOCONF) \
+ --disable-keyring \
+ --disable-nls \
+ --disable-rpath \
+ --disable-fips \
+ --disable-pwquality \
+ --disable-static-cryptsetup \
+ --disable-cryptsetup \
+ --enable-veritysetup \
+ --disable-cryptsetup-reencrypt \
+ --disable-integritysetup \
+ --disable-selinux \
+ --disable-udev \
+ --disable-kernel_crypto \
+ --disable-gcrypt-pbkdf2 \
+ --enable-internal-argon2 \
+ --disable-libargon2 \
+ --disable-internal-sse-argon2 \
+ --enable-blkid \
+ --enable-dev-random \
+ --disable-python \
+ --with-crypto_backend=openssl
+
+# vim: syntax=make