diff mbox series

[meta-swupdate,1/2] swugenerator: add recipe

Message ID 20261031100555.95947-2-stefano.babic@swupdate.org
State Accepted
Headers show
Series Build SWUs with swugenerator | expand

Commit Message

Stefano Babic Oct. 31, 2026, 10:05 a.m. UTC
swugenerator creates, signs and encrypts SWUs. Add a recipe for it,
native and nativesdk too, so that the classes of this layer can use it
to build the SWUs, and python3-libconf, which it needs: the layer does
not depend on meta-python. For native, gzip comes from pigz-native, as
in image_types.bbclass: gzip-native is provided by both gzip and pigz.

Version 0.9 is needed, the first with --keep-names.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 .../python/python3-libconf_2.0.1.bb           | 14 +++++++++++
 .../swugenerator/swugenerator_0.9.bb          | 24 +++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 recipes-devtools/python/python3-libconf_2.0.1.bb
 create mode 100644 recipes-devtools/swugenerator/swugenerator_0.9.bb
diff mbox series

Patch

diff --git a/recipes-devtools/python/python3-libconf_2.0.1.bb b/recipes-devtools/python/python3-libconf_2.0.1.bb
new file mode 100644
index 0000000..3245a82
--- /dev/null
+++ b/recipes-devtools/python/python3-libconf_2.0.1.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "A pure-Python libconfig reader/writer with permissive license"
+HOMEPAGE = "https://github.com/Grk0/python-libconf"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=05f696c084eaaf5d75bc150f70975758"
+
+SRC_URI[sha256sum] = "2f907258953ba60a95a82d5633726b47c81f2d5cf8d8801b092579016d757f4a"
+
+PYPI_PACKAGE = "libconf"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core python3-io"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-devtools/swugenerator/swugenerator_0.9.bb b/recipes-devtools/swugenerator/swugenerator_0.9.bb
new file mode 100644
index 0000000..47fbea7
--- /dev/null
+++ b/recipes-devtools/swugenerator/swugenerator_0.9.bb
@@ -0,0 +1,24 @@ 
+SUMMARY = "Generator of SWU update packages for SWUpdate"
+DESCRIPTION = "swugenerator creates, signs and encrypts SWU files from a \
+sw-description template, and wraps them into Mender Artifacts."
+HOMEPAGE = "https://github.com/sbabic/swugenerator"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+SRC_URI[sha256sum] = "ce83be33dc5d3a01db8a10ac31c432166ea3c878e071241b13c6e9ab2aa5653d"
+
+inherit pypi python_setuptools_build_meta
+
+# openssl signs and encrypts, gzip, xz and zstd compress the artifacts;
+# for native, gzip comes from pigz-native, as in image_types.bbclass:
+# gzip-native is provided by both gzip and pigz
+RDEPENDS:${PN}:class-target += "python3-core python3-compression python3-crypt \
+    python3-json python3-logging python3-shell python3-libconf \
+    openssl-bin gzip xz zstd"
+RDEPENDS:${PN}:class-nativesdk += "python3-core python3-compression python3-crypt \
+    python3-json python3-logging python3-shell python3-libconf \
+    nativesdk-openssl-bin nativesdk-gzip nativesdk-xz nativesdk-zstd"
+RDEPENDS:${PN}:class-native += "python3-native python3-libconf-native openssl-native \
+    pigz-native xz-native zstd-native"
+
+BBCLASSEXTEND = "native nativesdk"