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 7/7] swupdate: Add optional zlib support
Date: Fri, 21 Mar 2025 09:52:46 +0100	[thread overview]
Message-ID: <mailman.2958.1742547175.466.ptxdist@pengutronix.de> (raw)
In-Reply-To: <20250321085246.21344-1-ada@thorsis.com>


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

From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [RFC PATCH 7/7] swupdate: Add optional zlib support
Date: Fri, 21 Mar 2025 09:52:46 +0100
Message-ID: <20250321085246.21344-8-ada@thorsis.com>

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

diff --git a/rules/swupdate.in b/rules/swupdate.in
index d4eab8402..1e6a9aad3 100644
--- a/rules/swupdate.in
+++ b/rules/swupdate.in
@@ -5,6 +5,7 @@ menuconfig SWUPDATE
 	select LIBUBOOTENV
 	select JSON_C
 	select OPENSSL if SWUPDATE_WITH_OPENSSL
+	select ZLIB if SWUPDATE_WITH_ZLIB
 	prompt "swupdate                      "
 	help
 	  SWUpdate is a Linux Update agent with the goal to provide an
@@ -24,6 +25,12 @@ config SWUPDATE_WITH_OPENSSL
 	  Allows to enable hash verification, signed image verification,
 	  image encryption, and https for embedded webserver.
 
+config SWUPDATE_WITH_ZLIB
+	bool
+	prompt "zlib support"
+	help
+	  Allow decompressing of zlib/gz compressed streams.
+
 endif
 
 # vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/swupdate.make b/rules/swupdate.make
index 5cf64a646..e4ca08be6 100644
--- a/rules/swupdate.make
+++ b/rules/swupdate.make
@@ -65,7 +65,7 @@ SWUPDATE_CONF_ENV	:= \
 	HAVE_LIBEBGENV=n \
 	HAVE_LIBTEGRABOOT_TOOLS=n \
 	HAVE_LIBZEROMQ=n \
-	HAVE_ZLIB=n \
+	HAVE_ZLIB=$(call ptx/ifdef, PTXCONF_SWUPDATE_WITH_ZLIB, y, n) \
 	HAVE_ZSTD=n \
 	HAVE_LIBEXT2FS=n \
 	HAVE_LIBBTRFS=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 ` [ptxdist] [RFC PATCH 5/7] swupdate: Add option to build with OpenSSL support Alexander Dahl via ptxdist
2025-03-21  8:52 ` [ptxdist] [RFC PATCH 6/7] swupdate: Fix passing libubootenv dependency Alexander Dahl via ptxdist
2025-03-21  8:52 ` Alexander Dahl via ptxdist [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=mailman.2958.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