--- Begin Message ---
Signed-off-by: Alexander Dahl <[email protected]>
---
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
--- End Message ---