]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fwu: add helper to get image GUID by type and bank index
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Thu, 30 Apr 2026 08:06:07 +0000 (10:06 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 12 May 2026 13:52:01 +0000 (15:52 +0200)
commit97cdde6dfad31341d5efc9a8030b90049577ab90
tree4c5e0f480d24fcf23c61aba1d0aca4573a451d54
parent2dc71c48bf14aa22f24824dcd94550cc5277f402
fwu: add helper to get image GUID by type and bank index

Introduce fwu_mdata_get_image_guid() to retrieve a specific image GUID
from the FWU metadata based on the bank index and image type GUID.

This allows identifying the correct partition in multi-bank (A/B)
scenarios, ensuring the correct image is targeted depending on the
current bank.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/fwu.h
lib/fwu_updates/fwu.c