| Message ID | 20260430175308.868993-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBDVOZ3HQMGQEI5JI4DI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com
[209.85.128.69])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EAED23F0D7
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 30 Apr 2026 19:53:20 +0200 (CEST)
Received: by mail-wm1-f69.google.com with SMTP id
5b1f17b1804b1-488c0fcc6desf9317575e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 30 Apr 2026 10:53:20 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1777571600; cv=pass;
d=google.com; s=arc-20240605;
b=XcA0ElPXPqWqekiylTB2QQKoQ3LIGDwl1ctvy1Oag4X//6PbH0sNtsYYpfBOSsMh53
wP1WAeWnu9mMxYxDTx0Y11OrK+iMO3XRnMxVawtW5IFX1RAseo+zIXXeNd5YQD/xTz7g
N/+DPkCqF9H6WRFamAMj6nVedrfIHim74wWvIy6cABNLvV5ugiE3UMOcgUroltFHoHj1
9hRlU5/dabAdsOa+iIvbrIG6pII/bg5vwUSe9dp4CWPDHXrdk9YDtecZZiKFD9JWjM06
EcWokIGeq/DVte23wfhneFOJwY18fG/ICWPRZ3pcI7iLI1qXzwHISYDasVJCYFYyH2xz
VVQA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=36C5TYkFbngn3eS+Pj1E99nEhZpyclZplrY8kanbnis=;
fh=oMjjjdHHh2uzo+H85ugokhM831a5tCl3SlykwP09ze8=;
b=iof4ZNhrSzrOzuYhjWG6auQ8+sPDrsla/JKXT0qcKTTgyOGXGKyYADsUqR3rqdHwDu
wkOD67p8x38FWg8gFHx3HW2aGpEAP+nQgBzhCKbhDon6AslM1EXqOPqi63dIbv73xcxC
/4bwyUWwQ2zHdb9TKo+V26cpstMFYkKjgZZjTrmLvx8XUeyEvaSmem7ujLIfXkboBQly
B7dRGGNQ93jBKYR/LGAxtJmsdRN6734HndExmrj8sCHMiE1CMlWvObAk79R3v+Zsy1nR
P5YZZuVrRsqpqzcJy7krg3Yc9MAnnYCZyHdRhpQznNXyaJfu7GfnzwZQmSa+j3yn+9HS
mUdA==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=W6lGaai8;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1777571600; x=1778176400;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=36C5TYkFbngn3eS+Pj1E99nEhZpyclZplrY8kanbnis=;
b=cMGUYSxk8sSVB/s4kjTlJb7QC4CKYCw0IxG7yfodl65MBxQUSaQa4TnlEo0+gKzfJZ
uY4017sW8+OYeUQ/mr7qxJLpfMum2+HvmUCoFldVx03hj/ZzC1lux/FtbOLyusnzJZFg
gBGZCbPAI34wRxuQVa27iTdtsUlzEZlXR+dlY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1777571600; x=1778176400;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=36C5TYkFbngn3eS+Pj1E99nEhZpyclZplrY8kanbnis=;
b=LWUDqwLrYIzXkSEV+lYPw/9NCnHqx6I9k2AqjGJmO1KNmS4hnuGai7/e/mztO6Mtr0
Y6bG0hOQqbaXP9oZf9ykxEH9me2szrLWgSQwugkE7EEisl1Je8rnJ8h7BazDFKPl6gkO
wjQVnGuhDw+OcG4zNu1LNKS6qMhinfaUNWucSmLq7IaiM/1G4PZ8M64hKDt3rimWCfDN
+oFVpsgfasR/83zvLL4LqlRvCakvPgdu5PuOTzULKIMQRLdfSzeeItOypr3kvwjRemGT
hJWg4L33EuLIEBAkcnSXho7ONMwZynK5dhnyE+jmEaJKV84qvy0jdYhslxhqey254i7L
IMbg==
X-Forwarded-Encrypted: i=2;
AFNElJ9iE48GTkWqqhMulBg9zfn30J6QYn4ER02p+1sx0SkyddwyoDbDUnSetzzR+lNKcNJrsAxE0dld5tYb9ZkR@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yz1pHjS6sDmWH66SrwHjttioiqkHHkGxivwx1iyTPTyfyKV9DoX
1QZyP3TXMl0me84+8mmBh9YME8aMQTLt3N4/3EfcXA29lSwunJS9BdjAGn0TTCKUw0PopQ==
X-Received: by 2002:a05:600c:1d18:b0:488:904b:f31 with SMTP id
5b1f17b1804b1-48a84459207mr66737065e9.22.1777571599490;
Thu, 30 Apr 2026 10:53:19 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AUV6zMN6OZBed593aE5khRjzJQPsgokcNSKUGtx5AF5PhQZOeg=="
Received: by 2002:a05:600c:791:b0:488:88d2:f55 with SMTP id
5b1f17b1804b1-48a83be4992ls9707035e9.1.-pod-prod-06-eu; Thu, 30 Apr 2026
10:53:17 -0700 (PDT)
X-Received: by 2002:a05:600c:4e05:b0:489:201c:dc46 with SMTP id
5b1f17b1804b1-48a83e72f12mr65806575e9.12.1777571597538;
Thu, 30 Apr 2026 10:53:17 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1777571597; cv=none;
d=google.com; s=arc-20240605;
b=BOT8RpOy20QaEOHZAVOMb2ihynOrjefCD/oOgZ645GSVcpxeOkSlQt9bErhUZc5eT6
wVtaU2M0DIO2FT4Rc3ZR03c5LbESzaBfMWpryHBVTzAYmG8QmrI+ZYUQWgjQCv6ncfVl
3MvabEnwFWmC+/Hm8w2hj0PZrxj5ZkaotC/zKX2uoJOhVxDppx8RlYxnoDp3zND8SRnE
8Sm3GY/4w/sDJIzuZ2dWp9cpHt5GKJ2PrTsS+fUOq0xg/jTNaWVVx4DL8SWf9fR2B1fM
ra4VJi8H3TQe8R7oUw4binc8fgYoIiKc1F0z5nQivHwTIwg8gRt9DnD3g90DeV/keXc2
Hiag==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=JRASaNsFgmPTjbXLC7nKZ/wlbOi8yD473WoGWv7wW7A=;
fh=WmrJNaIHrGP10pjMSykFMaRG8yB05aer+1jA6msjLXU=;
b=DW66OZp9lia+dc69sjhv2KaKts+KVwA9tHm816A+ESd8gs0BhZlt3bWD1jhR1WPOaK
GHKMqi1z5f9x1zQwbxVuuIXgJOKWAEkI0rxKCIUVVRNz9vbRpRnTC6fgPHxpr24dAoHc
QvyvNEV+oga2qa6w81U7/Fwr9YsEw1JK6hiyL6A7r4LjJYzO7nGlZcyUFPphVut71sIE
TLmoZkfapyO9N7Jz2RiiSVg1VBzlPj4MyL+d99Uwvl02rKwDWlOtrSJZ3KcnI/IXllqe
pL0puYO390EreM3CPR3BGNNww5raE+gjG6deT5oNL1KkXZ2bbJ/IuLamd6n+rUbwRNYj
VWQQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=W6lGaai8;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-48a7c5ddaa8sor10776345e9.15.2026.04.30.10.53.17
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 30 Apr 2026 10:53:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: AeBDies1Xo8TBFlWJ947KGl7TWqaHIQwys9uRn8p6uuxSVMZqfPUAiYeeBtL5xhlIks
n2GJXdf7gYFsUI+wkABOd7Vq6u9MSOapRViA6MYWYAgEIH5Bp0yGU82YMVw/0wLnkYUyf1NWyUQ
cmTsYRwwZae3EkQEkeE4WkSZWP5by10ROXsBPx9oHjt234tL6OwWGluZJDjt3JalkctvDybUIr0
oB99NegOXFVLf98zuSIIbXNjRTCPPArVtlkD8JJUcPeZehFXYaLcK1If/RCk3vwphPA/uRs2uGR
nakWxawRKZKcP+Lthk1T9NWcEEiZJFFzc1wi1EUVbCm5KSBeILLx1Qbp9EetqONqfaQc2a+v4NA
n89xB+62TvoEXOBnRc4gpPxMn7jd5j1EyEBoeYYhlmFnsGcrhFB8L8QwVAt/RrY7VYSYob0ufWp
f6rS1fAiqCb9CdjSx5ZiFili8NQ6pFOnzaL3XUZOFuj1JJNxU8Emt4M4X1XlJPWm1KsFf2TxRLO
RVtv5LsQDz32MdoN6IZr6J+8cMCRuvbjEUP/hOH6wTTAT9KFJ7WYp441iqkO0/y7iN/fmekr1nl
epwNWns4LKOYCN71VCJ2QCH7GmNARCi1Ko4=
X-Received: by 2002:a05:600c:3b8c:b0:485:3ff1:d5ed with SMTP id
5b1f17b1804b1-48a83d6e1b2mr70193035e9.1.1777571596955;
Thu, 30 Apr 2026 10:53:16 -0700 (PDT)
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-82-56-22-134.retail.telecomitalia.it. [82.56.22.134])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-447b7217b20sm13835551f8f.22.2026.04.30.10.53.15
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 30 Apr 2026 10:53:15 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: openembedded-core@lists.openembedded.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>
Subject: [OE-core][PATCH v2] libfwumdata: add new recipe
Date: Thu, 30 Apr 2026 19:53:08 +0200
Message-ID: <20260430175308.868993-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=W6lGaai8;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[OE-core,v2] libfwumdata: add new recipe
|
|
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
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 To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Alexander, On Fri, May 1, 2026 at 3:16 PM Alexander Kanavin <alex.kanavin@gmail.com> wrote: > 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. I have already submitted a patch [1] to the SWUpdate mailing list that integrates libfwumdata as a handler, which is its first primary use-case. I am also currently using it in a custom SWUpdate implementation for a client project. > 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. > > The FWU (Firmware Update) metadata is not a custom vendor format, but a standardized binary structure [2] defined by the Arm specification (part of Arm SystemReady / PSA). It is already implemented and supported in U-Boot. As the adoption of this standard grows for managing A/B partition switching, providing a standalone, lightweight user-space library in oe-core is the cleanest approach. > > Changes v1 -> v2: > > - Drop S = "${WORKDIR}/git" > > This begs the question: how was the recipe tested before submission? > The development and testing of this recipe were done against the scarthgap release. On that specific branch, the S = "${WORKDIR}/git" assignment did not trigger the immediate build error that is enforced on master. [1] https://groups.google.com/g/swupdate/c/kYr2Hy-f3us [2] https://developer.arm.com/documentation/den0118/latest Thanks and regards, Dario > The above line would result in an immediate error on master and some > earlier releases. > > Alex >
On Tue, 5 May 2026 at 10:08, Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > I have already submitted a patch [1] to the SWUpdate mailing list that > integrates libfwumdata as a handler, which is its first primary use-case. > I am also currently using it in a custom SWUpdate implementation for a > client project. If there's a swupdate patch that hasn't been accepted yet then the swupdate support should be reviewed, accepted, merged, and released first, and such a release should be integrated into the yocto layer that provides it, and the libfwumdata support should be enabled there. Until all of it happens, adding the library to oe-core is premature. > The FWU (Firmware Update) metadata is not a custom vendor format, but > a standardized binary structure [2] defined by the Arm specification (part > of Arm SystemReady / PSA). It is already implemented and supported in U-Boot. How? Does u-boot support it without needing an external library? If not, then should u-boot support be enabled together with adding this recipe? If swupdate is the only expected consumer, then the recipe should go to meta-swupdate, not to oe-core. > The development and testing of this recipe were done against the scarthgap > release. On that specific branch, the S = "${WORKDIR}/git" assignment did > not trigger the immediate build error that is enforced on master. If you submit patches for the master branch, the expectation is that you test them on master before submission, and include the test protocol in the commit message. Thanks, Alex To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
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"