[PATCH v2 11/18] bloblist: Reduce blob-header size

Simon Glass sjg at chromium.org
Sat Dec 2 19:31:36 CET 2023


On Mon, 27 Nov 2023 at 12:53, Raymond Mao <raymond.mao at linaro.org> wrote:
>
> From: Simon Glass <sjg at chromium.org>
>
> The v0.9 spec provides for an 8-byte header for each blob, with fewer
> fields.
> The blob start address should be aligned to the alignment specified
> by the bloblist header.
> Update the implementation to match this.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Co-developed-by: Raymond Mao <raymond.mao at linaro.org>
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
> Changes in v2
> - Update the blob start address to align to the alignment required by
>   the bloblist header.
> - Define the macros of bloblist header size and bloblist record header
>   size as the size of their structures.
>
>  common/bloblist.c  | 17 +++++++++--------
>  include/bloblist.h | 33 ++++++++++++++++++++++-----------
>  test/bloblist.c    | 16 ++++++++--------
>  3 files changed, 39 insertions(+), 27 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list