Skip to contentSkip to conversation

packge/swupdate: bump to version 2025.12

PATCH Superseded Giulio Benetti 3 participants 7 messages Mar 24 – May 15

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 packge/swupdate: bump to version 2025.12

* as stated here[2] now swupdate requires at least one crypto backend so as done for libssh let's enable BR2_PACKAGE_OPENSSL if no other crypto backend supported by swupdate is enabled
* libconfig is required by default[1] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present

[1]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1
[2]: https://groups.google.com/g/swupdate/c/bLY3DyLzII0

---
 package/swupdate/Config.in       |  8 ++++++--
 package/swupdate/swupdate.config |  4 +---
 package/swupdate/swupdate.hash   |  2 +-
 package/swupdate/swupdate.mk     | 20 +++++++++-----------
 4 files changed, 17 insertions(+), 17 deletions(-)
package/swupdate/Config.in +6 -2
index 3708df0881..83cdec691d 100644
@@ -5,7 +5,10 @@ config BR2_PACKAGE_SWUPDATE
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
 	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_LIBCONFIG
 	select BR2_PACKAGE_LIBUBOOTENV
+	select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_LIBGPGME || \
+	       BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_WOLFSSL)
 	help
 	  swupdate provides a reliable way to update the software on
 	  an embedded system.
@@ -25,8 +28,9 @@ config BR2_PACKAGE_SWUPDATE
 	    want to have Lua support.
 	  * Select BR2_PACKAGE_LIBCURL if you want to use the download
 	    feature.
-	  * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-	    want to add encryption support.
+	  * Select at least one of these crypto backends:
+	    BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+	    BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
 	  * Select BR2_PACKAGE_MTD if you want to use swupdate with
 	    UBI partitions.
 	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +1 -3
index a6b7a74948..d913d16b09 100644
@@ -2,7 +2,6 @@
 # Automatically generated file; DO NOT EDIT.
 # Swupdate Configuration
 #
-CONFIG_HAVE_DOT_CONFIG=y
 
 #
 # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
 #
 CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
 CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
 #
 # MTD support needs libmtd
@@ -60,7 +58,7 @@ CONFIG_BOOTLOADER_NONE=y
 #
 # U-Boot support needs libubootenv, libz
 #
-CONFIG_SSL_IMPL_NONE=y
+CONFIG_SSL_IMPL_OPENSSL=y
 
 #
 # Image downloading support needs libcurl
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
 sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
 sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
 sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -11
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
 SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
 SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
 	LICENSES/MIT.txt \
 	LICENSES/OFL-1.1.txt
 SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
 # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
 # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
 endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 SWUPDATE_DEPENDENCIES += libcurl
 SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
 ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
 SWUPDATE_DEPENDENCIES += liburiparser
 SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y
@@ -126,10 +126,8 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SWUPDATE_DEPENDENCIES += openssl
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
 else
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
 endif
 
 ifeq ($(BR2_PACKAGE_P11_KIT),y)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Giulio Benetti

* as stated here[2] now swupdate requires at least one crypto backend so as done for libssh let's enable BR2_PACKAGE_OPENSSL if no other crypto backend supported by swupdate is enabled
* libconfig is required by default[1] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present

Quoted 5 lines

[1]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1
[2]: https://groups.google.com/g/swupdate/c/bLY3DyLzII0

---

Here I've forgotten:
V1->V2:
* drop Config.in choice since we can have multiple crypto backends
* add libgpgme as a possible crypto backend
* select openssl as default crypto backend
* set CONFIG_SSL_IMPL_OPENSSL=y in swupdate.config

Quoted 124 lines
  package/swupdate/Config.in       |  8 ++++++--
  package/swupdate/swupdate.config |  4 +---
  package/swupdate/swupdate.hash   |  2 +-
  package/swupdate/swupdate.mk     | 20 +++++++++-----------
  4 files changed, 17 insertions(+), 17 deletions(-)
package/swupdate/Config.in +6 -2
index 3708df0881..83cdec691d 100644
@@ -5,7 +5,10 @@ config BR2_PACKAGE_SWUPDATE
  	depends on BR2_USE_MMU # fork()
  	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
  	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_LIBCONFIG
  	select BR2_PACKAGE_LIBUBOOTENV
+	select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_LIBGPGME || \
+	       BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_WOLFSSL)
  	help
  	  swupdate provides a reliable way to update the software on
  	  an embedded system.
@@ -25,8 +28,9 @@ config BR2_PACKAGE_SWUPDATE
  	    want to have Lua support.
  	  * Select BR2_PACKAGE_LIBCURL if you want to use the download
  	    feature.
-	  * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-	    want to add encryption support.
+	  * Select at least one of these crypto backends:
+	    BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+	    BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
  	  * Select BR2_PACKAGE_MTD if you want to use swupdate with
  	    UBI partitions.
  	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +1 -3
index a6b7a74948..d913d16b09 100644
@@ -2,7 +2,6 @@
  # Automatically generated file; DO NOT EDIT.
  # Swupdate Configuration
  #
-CONFIG_HAVE_DOT_CONFIG=y
 
  #
  # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
  #
  CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
  CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
  #
  # MTD support needs libmtd
@@ -60,7 +58,7 @@ CONFIG_BOOTLOADER_NONE=y
  #
  # U-Boot support needs libubootenv, libz
  #
-CONFIG_SSL_IMPL_NONE=y
+CONFIG_SSL_IMPL_OPENSSL=y
 
  #
  # Image downloading support needs libcurl
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
  # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
  sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
  sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
  sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -9
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
  SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
  SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
  SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
  	LICENSES/MIT.txt \
  	LICENSES/OFL-1.1.txt
  SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
  # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
  # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
  endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
  ifeq ($(BR2_PACKAGE_LIBCURL),y)
  SWUPDATE_DEPENDENCIES += libcurl
  SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
  endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
  ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
  SWUPDATE_DEPENDENCIES += liburiparser
  SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y

package/swupdate/swupdate.mk endif · line 133

Quoted 10 lines
package/swupdate/swupdate.mk +0 -2
@@ -126,10 +126,8 @@ endif
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  SWUPDATE_DEPENDENCIES += openssl
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
  else
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
  endif
 
  ifeq ($(BR2_PACKAGE_P11_KIT),y)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Giulio Benetti
Quoted 4 lines · Giulio Benetti

* as stated here[2] now swupdate requires at least one crypto backend so as done for libssh let's enable BR2_PACKAGE_OPENSSL if no other crypto backend supported by swupdate is enabled

This bug should now be fixed:
https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b

Quoted 148 lines

* libconfig is required by default[1] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present

[1]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1
[2]: https://groups.google.com/g/swupdate/c/bLY3DyLzII0

---
 package/swupdate/Config.in       |  8 ++++++--
 package/swupdate/swupdate.config |  4 +---
 package/swupdate/swupdate.hash   |  2 +-
 package/swupdate/swupdate.mk     | 20 +++++++++-----------
 4 files changed, 17 insertions(+), 17 deletions(-)
package/swupdate/Config.in +6 -2
index 3708df0881..83cdec691d 100644
@@ -5,7 +5,10 @@ config BR2_PACKAGE_SWUPDATE
        depends on BR2_USE_MMU # fork()
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
        select BR2_PACKAGE_JSON_C
+       select BR2_PACKAGE_LIBCONFIG
        select BR2_PACKAGE_LIBUBOOTENV
+       select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_LIBGPGME || \
+              BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_WOLFSSL)
        help
          swupdate provides a reliable way to update the software on
          an embedded system.
@@ -25,8 +28,9 @@ config BR2_PACKAGE_SWUPDATE
            want to have Lua support.
          * Select BR2_PACKAGE_LIBCURL if you want to use the download
            feature.
-         * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-           want to add encryption support.
+         * Select at least one of these crypto backends:
+           BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+           BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
          * Select BR2_PACKAGE_MTD if you want to use swupdate with
            UBI partitions.
          * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +1 -3
index a6b7a74948..d913d16b09 100644
@@ -2,7 +2,6 @@
 # Automatically generated file; DO NOT EDIT.
 # Swupdate Configuration
 #
-CONFIG_HAVE_DOT_CONFIG=y
 
 #
 # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
 #
 CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
 CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
 #
 # MTD support needs libmtd
@@ -60,7 +58,7 @@ CONFIG_BOOTLOADER_NONE=y
 #
 # U-Boot support needs libubootenv, libz
 #
-CONFIG_SSL_IMPL_NONE=y
+CONFIG_SSL_IMPL_OPENSSL=y
 
 #
 # Image downloading support needs libcurl
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
 sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
 sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
 sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -12
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
 SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
 SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
        LICENSES/MIT.txt \
        LICENSES/OFL-1.1.txt
 SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
 # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
 # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
 endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 SWUPDATE_DEPENDENCIES += libcurl
 SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
 ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
 SWUPDATE_DEPENDENCIES += liburiparser
 SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y
@@ -126,10 +126,8 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SWUPDATE_DEPENDENCIES += openssl
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
 else
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
 endif
 
 ifeq ($(BR2_PACKAGE_P11_KIT),y)
--

2.47.3

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH v3 1/1 packge/swupdate: bump to version 2025.12

* backport locally patch [1] to fix build failure due to missing crypto backend
* libconfig is required by default[2] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present
* add libgpgme support

[1]: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
[2]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1

---
 ...no-crypto-configuration-link-failure.patch | 67 +++++++++++++++++++
 package/swupdate/Config.in                    |  6 +-
 package/swupdate/swupdate.config              |  2 -
 package/swupdate/swupdate.hash                |  2 +-
 package/swupdate/swupdate.mk                  | 20 +++---
 5 files changed, 81 insertions(+), 16 deletions(-)
 create mode 100644 package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch
package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch new file +67 -0
new file mode 100644
index 0000000000..15f33aa3ab
@@ -0,0 +1,67 @@
+From 4e7c2f6c4b978efae69d777705de84411a01c147 Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+Date: Tue, 24 Mar 2026 14:23:58 -0600
+Subject: [PATCH] build: fix no-crypto configuration link failure
+
+When no crypto backend is selected, the crypto directory contributes
+no objects, so this kbuild variant does not generate
+crypto/built-in.o.
+
+The top-level build still linked that file unconditionally, causing
+the final link to fail.
+
+Introduce a hidden SWUPDATE_CRYPTO helper selected by the Kconfig
+options that actually populate crypto/, and only descend into the
+crypto directory when that helper is enabled.
+
+Upstream: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
+Signed-off-by: James Hilliard <[email protected]>
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ Makefile       | 3 ++-
+ crypto/Kconfig | 5 +++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index aa9604aa..759fd191 100644
+--- a/Makefile
++++ b/Makefile
+@@ -369,7 +369,8 @@ include $(srctree)/Makefile.flags
+ # This allow a user to issue only 'make' to build a kernel including modules
+ # Defaults to vmlinux, but the arch makefile usually adds further targets
+ 
+-objs-y		:= core handlers crypto bootloader suricatta
++objs-y		:= core handlers bootloader suricatta
++objs-$(CONFIG_SWUPDATE_CRYPTO) += crypto
+ libs-y		:= corelib mongoose parser fs containers
+ bindings-y	:= bindings
+ tools-y		:= tools
+diff --git a/crypto/Kconfig b/crypto/Kconfig
+index 4b9db821..cc953542 100644
+--- a/crypto/Kconfig
++++ b/crypto/Kconfig
+@@ -23,9 +23,13 @@ menu "Crypto libraries"
+ 		depends on HAVE_GPGME
+ endmenu
+ 
++config SWUPDATE_CRYPTO
++	bool
++
+ config HASH_VERIFY
+ 	bool "Allow to add sha256 hash to each image"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ 	help
+ 	  Allow to add a sha256 hash to an artifact.
+ 	  This is automatically set in case of Signed Image
+@@ -83,6 +87,7 @@ menu "Encryption"
+ config ENCRYPTED_IMAGES
+ 	bool "Images can be encrypted with a symmetric key"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ comment "Image encryption needs an SSL implementation"
+ 	depends on !SSL_IMPL_OPENSSL && !SSL_IMPL_WOLFSSL && !SSL_IMPL_MBEDTLS
+ 
+-- 
+2.47.3
+
package/swupdate/Config.in +4 -2
index 3708df0881..112e53a127 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_SWUPDATE
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
 	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_LIBCONFIG
 	select BR2_PACKAGE_LIBUBOOTENV
 	help
 	  swupdate provides a reliable way to update the software on
@@ -25,8 +26,9 @@ config BR2_PACKAGE_SWUPDATE
 	    want to have Lua support.
 	  * Select BR2_PACKAGE_LIBCURL if you want to use the download
 	    feature.
-	  * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-	    want to add encryption support.
+	  * Select at least one of these crypto backends:
+	    BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+	    BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
 	  * Select BR2_PACKAGE_MTD if you want to use swupdate with
 	    UBI partitions.
 	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +0 -2
index a6b7a74948..0f672805be 100644
@@ -2,7 +2,6 @@
 # Automatically generated file; DO NOT EDIT.
 # Swupdate Configuration
 #
-CONFIG_HAVE_DOT_CONFIG=y
 
 #
 # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
 #
 CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
 CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
 #
 # MTD support needs libmtd
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
 sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
 sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
 sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -11
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
 SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
 SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
 	LICENSES/MIT.txt \
 	LICENSES/OFL-1.1.txt
 SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
 # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
 # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
 endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 SWUPDATE_DEPENDENCIES += libcurl
 SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
 ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
 SWUPDATE_DEPENDENCIES += liburiparser
 SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y
@@ -126,10 +126,8 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SWUPDATE_DEPENDENCIES += openssl
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
 else
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
 endif
 
 ifeq ($(BR2_PACKAGE_P11_KIT),y)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 9 lines · Giulio Benetti

* backport locally patch [1] to fix build failure due to missing crypto backend
* libconfig is required by default[2] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present
* add libgpgme support

Quoted 5 lines

[1]: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
[2]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1

---

V1->V2:
* drop Config.in choice since we can have multiple crypto backends
* add libgpgme as a possible crypto backend
* select openssl as default crypto backend
* set CONFIG_SSL_IMPL_OPENSSL=y in swupdate.config

V2->V3:
* don't use a crypto backend by default since James Hillard provided a patch committed upstream that still allow to build without it
* document the adding of libgpgme in commit log

---

Quoted 187 lines
  ...no-crypto-configuration-link-failure.patch | 67 +++++++++++++++++++
  package/swupdate/Config.in                    |  6 +-
  package/swupdate/swupdate.config              |  2 -
  package/swupdate/swupdate.hash                |  2 +-
  package/swupdate/swupdate.mk                  | 20 +++---
  5 files changed, 81 insertions(+), 16 deletions(-)

create mode 100644 package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch

package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch new file +67 -0
new file mode 100644
index 0000000000..15f33aa3ab
@@ -0,0 +1,67 @@
+From 4e7c2f6c4b978efae69d777705de84411a01c147 Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+Date: Tue, 24 Mar 2026 14:23:58 -0600
+Subject: [PATCH] build: fix no-crypto configuration link failure
+
+When no crypto backend is selected, the crypto directory contributes
+no objects, so this kbuild variant does not generate
+crypto/built-in.o.
+
+The top-level build still linked that file unconditionally, causing
+the final link to fail.
+
+Introduce a hidden SWUPDATE_CRYPTO helper selected by the Kconfig
+options that actually populate crypto/, and only descend into the
+crypto directory when that helper is enabled.
+
+Upstream: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
+Signed-off-by: James Hilliard <[email protected]>
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ Makefile       | 3 ++-
+ crypto/Kconfig | 5 +++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index aa9604aa..759fd191 100644
+--- a/Makefile
++++ b/Makefile
+@@ -369,7 +369,8 @@ include $(srctree)/Makefile.flags
+ # This allow a user to issue only 'make' to build a kernel including modules
+ # Defaults to vmlinux, but the arch makefile usually adds further targets
+
+-objs-y		:= core handlers crypto bootloader suricatta
++objs-y		:= core handlers bootloader suricatta
++objs-$(CONFIG_SWUPDATE_CRYPTO) += crypto
+ libs-y		:= corelib mongoose parser fs containers
+ bindings-y	:= bindings
+ tools-y		:= tools
+diff --git a/crypto/Kconfig b/crypto/Kconfig
+index 4b9db821..cc953542 100644
+--- a/crypto/Kconfig
++++ b/crypto/Kconfig
+@@ -23,9 +23,13 @@ menu "Crypto libraries"
+ 		depends on HAVE_GPGME
+ endmenu
+
++config SWUPDATE_CRYPTO
++	bool
++
+ config HASH_VERIFY
+ 	bool "Allow to add sha256 hash to each image"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ 	help
+ 	  Allow to add a sha256 hash to an artifact.
+ 	  This is automatically set in case of Signed Image
+@@ -83,6 +87,7 @@ menu "Encryption"
+ config ENCRYPTED_IMAGES
+ 	bool "Images can be encrypted with a symmetric key"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ comment "Image encryption needs an SSL implementation"
+ 	depends on !SSL_IMPL_OPENSSL && !SSL_IMPL_WOLFSSL && !SSL_IMPL_MBEDTLS
+
+--
+2.47.3
+
package/swupdate/Config.in +4 -2
index 3708df0881..112e53a127 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_SWUPDATE
  	depends on BR2_USE_MMU # fork()
  	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
  	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_LIBCONFIG
  	select BR2_PACKAGE_LIBUBOOTENV
  	help
  	  swupdate provides a reliable way to update the software on
@@ -25,8 +26,9 @@ config BR2_PACKAGE_SWUPDATE
  	    want to have Lua support.
  	  * Select BR2_PACKAGE_LIBCURL if you want to use the download
  	    feature.
-	  * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-	    want to add encryption support.
+	  * Select at least one of these crypto backends:
+	    BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+	    BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
  	  * Select BR2_PACKAGE_MTD if you want to use swupdate with
  	    UBI partitions.
  	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +0 -2
index a6b7a74948..0f672805be 100644
@@ -2,7 +2,6 @@
  # Automatically generated file; DO NOT EDIT.
  # Swupdate Configuration
  #
-CONFIG_HAVE_DOT_CONFIG=y
 
  #
  # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
  #
  CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
  CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
  #
  # MTD support needs libmtd
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
  # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
  sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
  sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
  sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -9
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
  SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
  SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
  SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
  	LICENSES/MIT.txt \
  	LICENSES/OFL-1.1.txt
  SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
  # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
  # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
  endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
  ifeq ($(BR2_PACKAGE_LIBCURL),y)
  SWUPDATE_DEPENDENCIES += libcurl
  SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
  endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
  ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
  SWUPDATE_DEPENDENCIES += liburiparser
  SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y

package/swupdate/swupdate.mk endif · line 133

Quoted 10 lines
package/swupdate/swupdate.mk +0 -2
@@ -126,10 +126,8 @@ endif
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  SWUPDATE_DEPENDENCIES += openssl
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
  else
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
  endif
 
  ifeq ($(BR2_PACKAGE_P11_KIT),y)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
In reply to Giulio Benetti

Hello Giulio,

Le 27/03/2026 à 15:16, Giulio Benetti a écrit :

Quoted 9 lines

* backport locally patch [1] to fix build failure due to missing crypto backend
* libconfig is required by default[2] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present
* add libgpgme support

Quoted 4 lines

[1]: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
[2]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1

Note: We don't have a runtime test to verify swupdate at runtime like for Mender package. It would be great to have one.

Applied to next. Thanks.

Best regards,
Romain

Quoted 188 lines
---
 ...no-crypto-configuration-link-failure.patch | 67 +++++++++++++++++++
 package/swupdate/Config.in                    |  6 +-
 package/swupdate/swupdate.config              |  2 -
 package/swupdate/swupdate.hash                |  2 +-
 package/swupdate/swupdate.mk                  | 20 +++---
 5 files changed, 81 insertions(+), 16 deletions(-)
 create mode 100644 package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch
package/swupdate/0001-build-fix-no-crypto-configuration-link-failure.patch new file +67 -0
new file mode 100644
index 0000000000..15f33aa3ab
@@ -0,0 +1,67 @@
+From 4e7c2f6c4b978efae69d777705de84411a01c147 Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+Date: Tue, 24 Mar 2026 14:23:58 -0600
+Subject: [PATCH] build: fix no-crypto configuration link failure
+
+When no crypto backend is selected, the crypto directory contributes
+no objects, so this kbuild variant does not generate
+crypto/built-in.o.
+
+The top-level build still linked that file unconditionally, causing
+the final link to fail.
+
+Introduce a hidden SWUPDATE_CRYPTO helper selected by the Kconfig
+options that actually populate crypto/, and only descend into the
+crypto directory when that helper is enabled.
+
+Upstream: https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b
+Signed-off-by: James Hilliard <[email protected]>
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ Makefile       | 3 ++-
+ crypto/Kconfig | 5 +++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index aa9604aa..759fd191 100644
+--- a/Makefile
++++ b/Makefile
+@@ -369,7 +369,8 @@ include $(srctree)/Makefile.flags
+ # This allow a user to issue only 'make' to build a kernel including modules
+ # Defaults to vmlinux, but the arch makefile usually adds further targets
+ 
+-objs-y		:= core handlers crypto bootloader suricatta
++objs-y		:= core handlers bootloader suricatta
++objs-$(CONFIG_SWUPDATE_CRYPTO) += crypto
+ libs-y		:= corelib mongoose parser fs containers
+ bindings-y	:= bindings
+ tools-y		:= tools
+diff --git a/crypto/Kconfig b/crypto/Kconfig
+index 4b9db821..cc953542 100644
+--- a/crypto/Kconfig
++++ b/crypto/Kconfig
+@@ -23,9 +23,13 @@ menu "Crypto libraries"
+ 		depends on HAVE_GPGME
+ endmenu
+ 
++config SWUPDATE_CRYPTO
++	bool
++
+ config HASH_VERIFY
+ 	bool "Allow to add sha256 hash to each image"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ 	help
+ 	  Allow to add a sha256 hash to an artifact.
+ 	  This is automatically set in case of Signed Image
+@@ -83,6 +87,7 @@ menu "Encryption"
+ config ENCRYPTED_IMAGES
+ 	bool "Images can be encrypted with a symmetric key"
+ 	depends on SSL_IMPL_OPENSSL || SSL_IMPL_WOLFSSL || SSL_IMPL_MBEDTLS
++	select SWUPDATE_CRYPTO
+ comment "Image encryption needs an SSL implementation"
+ 	depends on !SSL_IMPL_OPENSSL && !SSL_IMPL_WOLFSSL && !SSL_IMPL_MBEDTLS
+ 
+-- 
+2.47.3
+
package/swupdate/Config.in +4 -2
index 3708df0881..112e53a127 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_SWUPDATE
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
 	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_LIBCONFIG
 	select BR2_PACKAGE_LIBUBOOTENV
 	help
 	  swupdate provides a reliable way to update the software on
@@ -25,8 +26,9 @@ config BR2_PACKAGE_SWUPDATE
 	    want to have Lua support.
 	  * Select BR2_PACKAGE_LIBCURL if you want to use the download
 	    feature.
-	  * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-	    want to add encryption support.
+	  * Select at least one of these crypto backends:
+	    BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+	    BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
 	  * Select BR2_PACKAGE_MTD if you want to use swupdate with
 	    UBI partitions.
 	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +0 -2
index a6b7a74948..0f672805be 100644
@@ -2,7 +2,6 @@
 # Automatically generated file; DO NOT EDIT.
 # Swupdate Configuration
 #
-CONFIG_HAVE_DOT_CONFIG=y
 
 #
 # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
 #
 CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
 CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
 #
 # MTD support needs libmtd
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
 sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
 sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
 sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -9
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
 SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
 SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
 	LICENSES/MIT.txt \
 	LICENSES/OFL-1.1.txt
 SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
 # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
 # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
 endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 SWUPDATE_DEPENDENCIES += libcurl
 SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
 SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
 ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
 SWUPDATE_DEPENDENCIES += liburiparser
 SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y

package/swupdate/swupdate.mk endif · line 133

Quoted 10 lines
package/swupdate/swupdate.mk +0 -2
@@ -126,10 +126,8 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SWUPDATE_DEPENDENCIES += openssl
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
 else
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
 endif
 
 ifeq ($(BR2_PACKAGE_P11_KIT),y)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
In reply to James Hilliard

Hi James,

Quoted 9 lines · James Hilliard
Quoted 4 lines · Giulio Benetti

* as stated here[2] now swupdate requires at least one crypto backend so as done for libssh let's enable BR2_PACKAGE_OPENSSL if no other crypto backend supported by swupdate is enabled

This bug should now be fixed:
https://github.com/sbabic/swupdate/commit/10334fb21796b75f3a1208a3d5a98a307712218b

Thank you, I've provided a V3 with crypto disabled by default:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Best regards
Giulio

Quoted 144 lines
Quoted 144 lines

* libconfig is required by default[1] so let's select it
* align swupdate.config to the most basic one with openssl crypto backend enabled by default
* drop HAVE_LIBCRYPTO since it's not used anymore by swupdate even if present

[1]: https://github.com/sbabic/swupdate/commit/4b9a71476c886be1a6affe21d6a0334b254a04e1
[2]: https://groups.google.com/g/swupdate/c/bLY3DyLzII0

---
  package/swupdate/Config.in       |  8 ++++++--
  package/swupdate/swupdate.config |  4 +---
  package/swupdate/swupdate.hash   |  2 +-
  package/swupdate/swupdate.mk     | 20 +++++++++-----------
  4 files changed, 17 insertions(+), 17 deletions(-)
package/swupdate/Config.in +6 -2
index 3708df0881..83cdec691d 100644
@@ -5,7 +5,10 @@ config BR2_PACKAGE_SWUPDATE
         depends on BR2_USE_MMU # fork()
         depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
         select BR2_PACKAGE_JSON_C
+       select BR2_PACKAGE_LIBCONFIG
         select BR2_PACKAGE_LIBUBOOTENV
+       select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_LIBGPGME || \
+              BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_WOLFSSL)
         help
           swupdate provides a reliable way to update the software on
           an embedded system.
@@ -25,8 +28,9 @@ config BR2_PACKAGE_SWUPDATE
             want to have Lua support.
           * Select BR2_PACKAGE_LIBCURL if you want to use the download
             feature.
-         * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you
-           want to add encryption support.
+         * Select at least one of these crypto backends:
+           BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS or
+           BR2_PACKAGE_WOLFSSL or BR2_PACKAGE_LIBGPGME.
           * Select BR2_PACKAGE_MTD if you want to use swupdate with
             UBI partitions.
           * Select BR2_PACKAGE_ZLIB if you want to deal with gzip
package/swupdate/swupdate.config +1 -3
index a6b7a74948..d913d16b09 100644
@@ -2,7 +2,6 @@
  # Automatically generated file; DO NOT EDIT.
  # Swupdate Configuration
  #
-CONFIG_HAVE_DOT_CONFIG=y
 
  #
  # Swupdate Settings
@@ -24,7 +23,6 @@ CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"
  #
  CONFIG_SOCKET_CTRL_PATH="/tmp/sockinstctrl"
  CONFIG_SOCKET_PROGRESS_PATH="/tmp/swupdateprog"
-CONFIG_SOCKET_REMOTE_HANDLER_DIRECTORY="/tmp/"
 
  #
  # MTD support needs libmtd
@@ -60,7 +58,7 @@ CONFIG_BOOTLOADER_NONE=y
  #
  # U-Boot support needs libubootenv, libz
  #
-CONFIG_SSL_IMPL_NONE=y
+CONFIG_SSL_IMPL_OPENSSL=y
 
  #
  # Image downloading support needs libcurl
package/swupdate/swupdate.hash +1 -1
index bc911d1820..b3f43648f8 100644
@@ -1,5 +1,5 @@
  # Locally calculated
-sha256  678b47fd2419727c4d0abf5c9f3bc0dc4b67e95951132bd1c8f5603e88947779  swupdate-2025.05.tar.gz
+sha256  8517f3730eeb66e20e651b881dd4b9c10ca9ae05e3883db59b5df18ab1eaa533  swupdate-2025.12.tar.gz
  sha256  4cf04ed34ff0ebbf5c71345b56e6af5093fc17206364cca0ebbae92ef3940683  LICENSES/BSD-1-Clause.txt
  sha256  e27a3e87706b3aa5ff2e50eaafe2e6ed5397fbf2d7679eaf444a6d000518a3a6  LICENSES/BSD-3-Clause.txt
  sha256  0558101984550fa84d1d13c2af11d116c20079d2be58711e8d99cadce7009192  LICENSES/CC0-1.0.txt
package/swupdate/swupdate.mk +9 -11
index 05329d13b8..b2778d2aec 100644
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-SWUPDATE_VERSION = 2025.05
+SWUPDATE_VERSION = 2025.12
  SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
  SWUPDATE_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1+, MIT, ISC, BSD-1-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, OFL-1.1
  SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
@@ -18,7 +18,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
         LICENSES/MIT.txt \
         LICENSES/OFL-1.1.txt
  SWUPDATE_INSTALL_STAGING = YES
-SWUPDATE_DEPENDENCIES = json-c libubootenv
+SWUPDATE_DEPENDENCIES = json-c libconfig libubootenv
 
  # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
  # available in all external toolchains, and use CC for linking. Ensure
@@ -51,13 +51,6 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBBLKID=n
  endif
 
-ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
-SWUPDATE_DEPENDENCIES += libconfig
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=y
-else
-SWUPDATE_MAKE_ENV += HAVE_LIBCONFIG=n
-endif
-
  ifeq ($(BR2_PACKAGE_LIBCURL),y)
  SWUPDATE_DEPENDENCIES += libcurl
  SWUPDATE_MAKE_ENV += HAVE_LIBCURL=y
@@ -82,6 +75,13 @@ else
  SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
  endif
 
+ifeq ($(BR2_PACKAGE_LIBGPGME),y)
+SWUPDATE_DEPENDENCIES += libgpgme
+SWUPDATE_MAKE_ENV += HAVE_GPGME=y
+else
+SWUPDATE_MAKE_ENV += HAVE_GPGME=n
+endif
+
  ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
  SWUPDATE_DEPENDENCIES += liburiparser
  SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y
@@ -126,10 +126,8 @@ endif
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  SWUPDATE_DEPENDENCIES += openssl
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
  else
  SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n
-SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
  endif
 
Quoted 8 lines
Quoted 8 lines
package/swupdate/swupdate.mk +0 -1
  ifeq ($(BR2_PACKAGE_P11_KIT),y)
--

2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot