mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/5] cryptsetup: version bump 2.0.3 -> 2.0.6
@ 2019-02-08  9:12 Bastian Krause
  2019-02-08  9:12 ` [ptxdist] [PATCH 2/5] host-json-c: new package Bastian Krause
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bastian Krause @ 2019-02-08  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

cryptsetup strongly encourages to link against libblkid since 2.0.4.

There's no point in enabling an SSE implementation on embedded devices.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/cryptsetup.in   | 1 +
 rules/cryptsetup.make | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/rules/cryptsetup.in b/rules/cryptsetup.in
index 67ce41beb..1a4f8f814 100644
--- a/rules/cryptsetup.in
+++ b/rules/cryptsetup.in
@@ -5,6 +5,7 @@ menuconfig CRYPTSETUP
 	select LVM2
 	select LIBUUID
 	select LIBPOPT
+	select LIBBLKID
 	select LIBGCRYPT	if CRYPTSETUP_CRYPT_BACKEND_GCRYPT
 	select OPENSSL		if CRYPTSETUP_CRYPT_BACKEND_OPENSSL
 	select NETTLE		if CRYPTSETUP_CRYPT_BACKEND_NETTLE
diff --git a/rules/cryptsetup.make b/rules/cryptsetup.make
index fbc30d868..ec82b4add 100644
--- a/rules/cryptsetup.make
+++ b/rules/cryptsetup.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_CRYPTSETUP) += cryptsetup
 #
 # Paths and names
 #
-CRYPTSETUP_VERSION	:= 2.0.3
-CRYPTSETUP_MD5		:= 9161132f69e97018b39ab592d7831f61
+CRYPTSETUP_VERSION	:= 2.0.6
+CRYPTSETUP_MD5		:= c01aa63a90acdb25600ed9126fa2b1a1
 CRYPTSETUP		:= cryptsetup-$(CRYPTSETUP_VERSION)
 CRYPTSETUP_SUFFIX	:= tar.gz
 CRYPTSETUP_URL		:= https://www.kernel.org/pub/linux/utils/cryptsetup/v$(basename $(CRYPTSETUP_VERSION))/$(CRYPTSETUP).$(CRYPTSETUP_SUFFIX)
@@ -52,6 +52,8 @@ CRYPTSETUP_CONF_OPT	:= \
 	--$(call ptx/endis, PTXCONF_CRYPTSETUP_CRYPT_BACKEND_GCRYPT)-gcrypt-pbkdf2 \
 	--enable-internal-argon2 \
 	--disable-libargon2 \
+	--disable-internal-sse-argon2 \
+	--enable-blkid \
 	--enable-dev-random \
 	--disable-python \
 	--with-crypto_backend=$(PTXCONF_CRYPTSETUP_CRYPT_BACKEND) \
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 2/5] host-json-c: new package
  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 ` Bastian Krause
  2019-02-08  9:12 ` [ptxdist] [PATCH 3/5] host-libpopt: " Bastian Krause
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bastian Krause @ 2019-02-08  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/host-json-c.in   |  7 +++++++
 rules/host-json-c.make | 30 ++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 rules/host-json-c.in
 create mode 100644 rules/host-json-c.make

diff --git a/rules/host-json-c.in b/rules/host-json-c.in
new file mode 100644
index 000000000..498de5d77
--- /dev/null
+++ b/rules/host-json-c.in
@@ -0,0 +1,7 @@
+## SECTION=hosttools_noprompt
+
+config HOST_JSON_C
+	tristate
+	default y if ALLYES
+	help
+	  json bindings in C
diff --git a/rules/host-json-c.make b/rules/host-json-c.make
new file mode 100644
index 000000000..b88b9e444
--- /dev/null
+++ b/rules/host-json-c.make
@@ -0,0 +1,30 @@
+# -*-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_JSON_C) += host-json-c
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_JSON_C_CONF_TOOL	:= autoconf
+HOST_JSON_C_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	--disable-threading \
+	--disable-rdrand \
+	--disable-static
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 3/5] host-libpopt: new package
  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 ` Bastian Krause
  2019-02-08  9:12 ` [ptxdist] [PATCH 4/5] host-lvm2: " Bastian Krause
  2019-02-08  9:12 ` [ptxdist] [PATCH 5/5] host-cryptsetup: " Bastian Krause
  3 siblings, 0 replies; 5+ messages in thread
From: Bastian Krause @ 2019-02-08  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/host-libpopt.in   | 16 ++++++++++++++++
 rules/host-libpopt.make | 31 +++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 rules/host-libpopt.in
 create mode 100644 rules/host-libpopt.make

diff --git a/rules/host-libpopt.in b/rules/host-libpopt.in
new file mode 100644
index 000000000..03786145e
--- /dev/null
+++ b/rules/host-libpopt.in
@@ -0,0 +1,16 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBPOPT
+	tristate
+	default y if ALLYES
+	help
+	  lib for parsing cmdline parameters
+
+	  Popt was heavily influenced by the getopt() and
+	  getopt_long() functions, but it allows more powerful
+	  argument expansion. It can parse arbitrary argv[] style
+	  arrays and automatically set variables based on command line
+	  arguments. It also allows command line arguments to be
+	  aliased via configuration files and includes utility
+	  functions for parsing arbitrary strings into argv[] arrays
+	  using shell-like rules.
diff --git a/rules/host-libpopt.make b/rules/host-libpopt.make
new file mode 100644
index 000000000..bbac09ec9
--- /dev/null
+++ b/rules/host-libpopt.make
@@ -0,0 +1,31 @@
+# -*-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_LIBPOPT) += host-libpopt
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_LIBPOPT_CONF_TOOL	:= autoconf
+HOST_LIBPOPT_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--disable-build-gcov \
+	--disable-nls \
+	--disable-rpath
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 4/5] host-lvm2: new package
  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 ` Bastian Krause
  2019-02-08  9:12 ` [ptxdist] [PATCH 5/5] host-cryptsetup: " Bastian Krause
  3 siblings, 0 replies; 5+ messages in thread
From: Bastian Krause @ 2019-02-08  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

ncurses and readline support is not necessary for the host tool version.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/host-lvm2.in   |  8 ++++++
 rules/host-lvm2.make | 67 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 rules/host-lvm2.in
 create mode 100644 rules/host-lvm2.make

diff --git a/rules/host-lvm2.in b/rules/host-lvm2.in
new file mode 100644
index 000000000..c77fc3e28
--- /dev/null
+++ b/rules/host-lvm2.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LVM2
+	tristate
+	help
+	  LVM2 refers to a new userspace toolset that provide logical volume management
+	  facilities on linux. It is reasonably backwards-compatible with the original
+	  LVM toolset
diff --git a/rules/host-lvm2.make b/rules/host-lvm2.make
new file mode 100644
index 000000000..a74a992cd
--- /dev/null
+++ b/rules/host-lvm2.make
@@ -0,0 +1,67 @@
+# -*-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_LVM2) += host-lvm2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_LVM2_CONF_TOOL	:= autoconf
+# --disable-o_direct leads to compilation error ("device/dev-io.c:537:5: error: label 'opened' used but not defined")
+HOST_LVM2_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	--disable-static_link \
+	--disable-lvm1_fallback \
+	--disable-thin_check_needs_check \
+	--disable-cache_check_needs_check \
+	--disable-readline \
+	--enable-realtime \
+	--disable-ocf \
+	--disable-cmirrord \
+	--disable-debug \
+	--disable-profiling \
+	--disable-testing \
+	--disable-valgrind-pool \
+	--enable-devmapper \
+	--disable-lvmetad \
+	--disable-lvmpolld \
+	--disable-lvmlockd-sanlock \
+	--disable-lvmlockd-dlm \
+	--disable-use-lvmlockd \
+	--disable-use-lvmetad \
+	--disable-use-lvmpolld \
+	--disable-dmfilemapd \
+	--disable-notify-dbus \
+	--disable-blkid_wiping \
+	--disable-compat \
+	--disable-units-compat \
+	--disable-ioctl \
+	--enable-o_direct \
+	--disable-applib \
+	--disable-cmdlib \
+	--disable-python_bindings \
+	--disable-python2_bindings \
+	--disable-python3_bindings \
+	--disable-pkgconfig \
+	--disable-write_install \
+	--disable-fsadm \
+	--disable-blkdeactivate \
+	--disable-dmeventd \
+	--disable-selinux \
+	--disable-nls
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 5/5] host-cryptsetup: new package
  2019-02-08  9:12 [ptxdist] [PATCH 1/5] cryptsetup: version bump 2.0.3 -> 2.0.6 Bastian Krause
                   ` (2 preceding siblings ...)
  2019-02-08  9:12 ` [ptxdist] [PATCH 4/5] host-lvm2: " Bastian Krause
@ 2019-02-08  9:12 ` Bastian Krause
  3 siblings, 0 replies; 5+ messages in thread
From: Bastian Krause @ 2019-02-08  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-08  9:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [ptxdist] [PATCH 5/5] host-cryptsetup: " Bastian Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox