Attention is currently required from: Furquan Shaikh. Hello build bot (Jenkins), Furquan Shaikh, Aaron Durbin,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/49334
to look at the new patch set (#11).
Change subject: cbfs: Add cbfs_alloc() primitive and combine cbfs_load() and cbfs_map() ......................................................................
cbfs: Add cbfs_alloc() primitive and combine cbfs_load() and cbfs_map()
This patchs adds a new CBFS primitive that allows callers to pass in an allocator function that will be called once the size of the file to load is known, to decide on its final location. This can be useful for loading a CBFS file straight into CBMEM, for example. The new primitive is combined with cbfs_map() and cbfs_load() into a single underlying function that can handle all operations, to reduce the amount of code that needs to be duplicated (especially later when file verification is added). Also add a new variation that allows restraining or querying the CBFS type of a file as it is being loaded, and reorganize the documentation/definition of all these accessors and variations in the header file a little.
Signed-off-by: Julius Werner jwerner@chromium.org Change-Id: I5fe0645387c0e9053ad5c15744437940fc904392 --- M src/commonlib/bsd/include/commonlib/bsd/cbfs_serialized.h M src/include/cbfs.h M src/lib/cbfs.c 3 files changed, 239 insertions(+), 75 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/49334/11