mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [RFC PATCH 5/7] swupdate: Add option to build with OpenSSL support
Date: Fri, 21 Mar 2025 09:52:44 +0100	[thread overview]
Message-ID: <mailman.2957.1742547175.466.ptxdist@pengutronix.de> (raw)
In-Reply-To: <20250321085246.21344-1-ada@thorsis.com>


[-- Attachment #0: Type: message/rfc822, Size: 3692 bytes --]

From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [RFC PATCH 5/7] swupdate: Add option to build with OpenSSL support
Date: Fri, 21 Mar 2025 09:52:44 +0100
Message-ID: <20250321085246.21344-6-ada@thorsis.com>

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/swupdate.in   | 16 ++++++++++++++--
 rules/swupdate.make |  4 ++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/rules/swupdate.in b/rules/swupdate.in
index 2fc4f6627..d4eab8402 100644
--- a/rules/swupdate.in
+++ b/rules/swupdate.in
@@ -1,10 +1,11 @@
 ## SECTION=applications
 
-config SWUPDATE
+menuconfig SWUPDATE
 	tristate
 	select LIBUBOOTENV
 	select JSON_C
-	prompt "swupdate"
+	select OPENSSL if SWUPDATE_WITH_OPENSSL
+	prompt "swupdate                      "
 	help
 	  SWUpdate is a Linux Update agent with the goal to provide an
 	  efficient and safe way to update an embedded Linux system in
@@ -14,4 +15,15 @@ config SWUPDATE
 
 	  https://swupdate.org/
 
+if SWUPDATE
+
+config SWUPDATE_WITH_OPENSSL
+	bool
+	prompt "OpenSSL support"
+	help
+	  Allows to enable hash verification, signed image verification,
+	  image encryption, and https for embedded webserver.
+
+endif
+
 # vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/swupdate.make b/rules/swupdate.make
index ef6e8711f..bcd109f05 100644
--- a/rules/swupdate.make
+++ b/rules/swupdate.make
@@ -69,9 +69,9 @@ SWUPDATE_CONF_ENV	:= \
 	HAVE_ZSTD=n \
 	HAVE_LIBEXT2FS=n \
 	HAVE_LIBBTRFS=n \
-	HAVE_LIBSSL=n \
+	HAVE_LIBSSL=$(call ptx/ifdef, PTXCONF_SWUPDATE_WITH_OPENSSL, y, n) \
 	HAVE_LIBSYSTEMD=n \
-	HAVE_LIBCRYPTO=n \
+	HAVE_LIBCRYPTO=$(call ptx/ifdef, PTXCONF_SWUPDATE_WITH_OPENSSL, y, n) \
 	HAVE_WOLFSSL=n \
 	HAVE_MBEDTLS=n \
 	HAVE_P11KIT=n \
-- 
2.39.5




  parent reply	other threads:[~2025-03-21  8:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250321085246.21344-1-ada@thorsis.com>
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 1/7] libubootenv: Introduce new package Alexander Dahl via ptxdist
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 2/7] libubootenv: Add option for installing tools Alexander Dahl via ptxdist
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 3/7] swupdate: Introduce new package Alexander Dahl via ptxdist
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 4/7] swupdate: Remove targetinstall of example tools Alexander Dahl via ptxdist
2025-03-21  8:52 ` Alexander Dahl via ptxdist [this message]
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 6/7] swupdate: Fix passing libubootenv dependency Alexander Dahl via ptxdist
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 7/7] swupdate: Add optional zlib support Alexander Dahl via ptxdist

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=mailman.2957.1742547175.466.ptxdist@pengutronix.de \
    --to=ptxdist@pengutronix.de \
    --cc=ada@thorsis.com \
    /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