mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
cbfs: Allow access to CBFS without a header
In some cases CBFS does not start with a header but is just a collection of files. It is possible to support this so long as the size of the CBFS is provided. Update the cbfs_init_mem() function to support this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -84,7 +84,8 @@ static int get_cbfs_fsp(enum fsp_type_t type, ulong map_base,
|
||||
struct cbfs_priv *cbfs;
|
||||
int ret;
|
||||
|
||||
ret = cbfs_init_mem(map_base + cbfs_base, &cbfs);
|
||||
ret = cbfs_init_mem(map_base + cbfs_base, CBFS_SIZE_UNKNOWN, true,
|
||||
&cbfs);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (!ret) {
|
||||
|
||||
Reference in New Issue
Block a user