[PATCHv4 4/5] fwu: meta-data: switch to management by common code

Tom Rini trini at konsulko.com
Tue Feb 21 19:23:25 CET 2023


On Sat, Feb 04, 2023 at 09:02:02PM -0600, jassisinghbrar at gmail.com wrote:

> From: Jassi Brar <jaswinder.singh at linaro.org>
> 
> The common code can now read, verify and fix meta-data copies
> while exposing one consistent structure to users.
>  Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops
> are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num()
> .read_mdata_partition() and .write_mdata_partition() and also the
> corresponding wrapper functions.
> 
> Signed-off-by: Jassi Brar <jaswinder.singh at linaro.org>
> Reviewed-by: Etienne Carriere <etienne.carriere at linaro.org>
> ---
>  cmd/fwu_mdata.c                      |  17 +-
>  drivers/fwu-mdata/fwu-mdata-uclass.c | 165 -------------------
>  drivers/fwu-mdata/gpt_blk.c          | 124 +-------------
>  include/fwu.h                        | 199 -----------------------
>  lib/fwu_updates/fwu.c                | 235 ++++-----------------------
>  5 files changed, 38 insertions(+), 702 deletions(-)

This forgot to update test/dm/fwu_mdata.c and so CI fails:
https://source.denx.de/u-boot/u-boot/-/jobs/580820#L347

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230221/4a75f47f/attachment.sig>


More information about the U-Boot mailing list