[PATCH 1/2] fip: Store image data in single buffer
Sascha Hauer
s.hauer at pengutronix.de
Mon Feb 24 01:09:38 PST 2025
On Mon, 17 Feb 2025 13:25:37 +0100, Sascha Hauer wrote:
> Right now in fip_parse() we read the whole FIP image into an allocated
> buffer, then allocate buffers for the different blobs contained in the
> FIP image and memcpy the blobs there from the full buffer. Let's
> optimize this a bit by keeping the full buffer. Instead of allocating
> separate buffers for the blobs, just put pointers to the full buffers
> into struct fip_image and set the buf_no_free flag indicating that they
> should not be freed.
>
> [...]
Applied, thanks!
[1/2] fip: Store image data in single buffer
https://git.pengutronix.de/cgit/barebox/commit/?id=e48141941199 (link may not be stable)
[2/2] fip: add function to parse FIP from a buffer
https://git.pengutronix.de/cgit/barebox/commit/?id=748ba0627681 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list