diff mbox series

[v2] libfwumdata: add new recipe

Message ID 20260430175308.868993-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series [v2] libfwumdata: add new recipe | expand

Commit Message

Dario Binacchi April 30, 2026, 5:53 p.m. UTC
libfwumdata is a lightweight C library for parsing, validating (CRC32),
and manipulating Firmware Update (FWU) metadata, allowing tools such as
RAUC or SWUpdate, and in general any application, to modify the boot
bank selection.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

---

Changes v1 -> v2:
- Drop S = "${WORKDIR}/git"

 meta/recipes-bsp/u-boot/libfwumdata_0.1.0.bb | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/recipes-bsp/u-boot/libfwumdata_0.1.0.bb

Comments

Alexander Kanavin May 1, 2026, 1:16 p.m. UTC | #1
On Fri, 1 May 2026 at 00:18, Dario Binacchi via lists.openembedded.org
<dario.binacchi=amarulasolutions.com@lists.openembedded.org> wrote:
> libfwumdata is a lightweight C library for parsing, validating (CRC32),
> and manipulating Firmware Update (FWU) metadata, allowing tools such as
> RAUC or SWUpdate, and in general any application, to modify the boot
> bank selection.

A library recipe without any consumers doesn't make sense. The patch
should include enabling support for it in other recipes. There should
also be an explanation of why this functionality is common and
important enough that the recipe should be in oe-core; until now no
one has asked for it.

> Changes v1 -> v2:
> - Drop S = "${WORKDIR}/git"

This begs the question: how was the recipe tested before submission?
The above line would result in an immediate error on master and some
earlier releases.

Alex
diff mbox series

Patch

diff --git a/meta/recipes-bsp/u-boot/libfwumdata_0.1.0.bb b/meta/recipes-bsp/u-boot/libfwumdata_0.1.0.bb
new file mode 100644
index 000000000000..aa8184845c00
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/libfwumdata_0.1.0.bb
@@ -0,0 +1,20 @@ 
+SUMMARY = "Library to access Firmware Update (FWU) metadata"
+
+DESCRIPTION = "This package contains a library to read and modify FWU \
+metadata. It provides a minimal API to allow userspace applications, such as \
+SWUpdate, RAUC or any other OTA update manager, to modify the boot bank \
+selection."
+
+HOMEPAGE = "https://github.com/passgat/libfwumdata"
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://LICENSES/LGPL-2.1-or-later.txt;md5=4fbd65380cdd255951079008b364516c"
+SECTION = "libs"
+
+SRC_URI = "git://github.com/passgat/libfwumdata;protocol=https;branch=master"
+SRCREV = "c6e235d3cf0467211ca6946bd10a2c8bdc0d5053"
+
+inherit cmake lib_package
+
+DEPENDS = "zlib"
+
+BBCLASSEXTEND = "native"