From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH 5/5] host-cryptsetup: new package
Date: Fri, 8 Feb 2019 10:12:19 +0100 [thread overview]
Message-ID: <20190208091219.1603-5-bst@pengutronix.de> (raw)
In-Reply-To: <20190208091219.1603-1-bst@pengutronix.de>
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>
---
rules/host-cryptsetup.in | 17 +++++++++++++
rules/host-cryptsetup.make | 49 ++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
create mode 100644 rules/host-cryptsetup.in
create mode 100644 rules/host-cryptsetup.make
diff --git a/rules/host-cryptsetup.in b/rules/host-cryptsetup.in
new file mode 100644
index 000000000..c0a2aef90
--- /dev/null
+++ b/rules/host-cryptsetup.in
@@ -0,0 +1,17 @@
+## 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
+ help
+ Cryptsetup is a utility used to conveniently setup disk encryption
+ based on the dm-crypt kernel module.
+ It also includes veritysetup, used to setup dm-verity block integrity
+ checking of read-only targets, as well as integritysetup to setup
+ dm-integrity block integrity checking of read-write targets.
diff --git a/rules/host-cryptsetup.make b/rules/host-cryptsetup.make
new file mode 100644
index 000000000..d3a791230
--- /dev/null
+++ b/rules/host-cryptsetup.make
@@ -0,0 +1,49 @@
+# -*-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 \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --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
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2019-02-08 9:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-08 9:12 [ptxdist] [PATCH 1/5] cryptsetup: version bump 2.0.3 -> 2.0.6 Bastian Krause
2019-02-08 9:12 ` [ptxdist] [PATCH 2/5] host-json-c: new package Bastian Krause
2019-02-08 9:12 ` [ptxdist] [PATCH 3/5] host-libpopt: " Bastian Krause
2019-02-08 9:12 ` [ptxdist] [PATCH 4/5] host-lvm2: " Bastian Krause
2019-02-08 9:12 ` Bastian Krause [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190208091219.1603-5-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox