cbfs: Add functions to support multiple CBFSs
authorSimon Glass <sjg@chromium.org>
Thu, 15 Aug 2019 01:56:14 +0000 (19:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 18 Aug 2019 13:54:10 +0000 (21:54 +0800)
commit630b2f39ddabd43a27a98f0356b948df18e97d88
tree4de393a9f9563d12041f6cd3ff60285d398ffd52
parentc7f16934749b054ce1f0b75bd664d22af8b7c588
cbfs: Add functions to support multiple CBFSs

Sometimes an image has multiple CBFS. The current CBFS API is limited to
handling only one at time. Also it keeps track of the CBFS internally in
BSS, which does not work before relocation, for example.

Add a few new functions to overcome these limitations.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
fs/cbfs/cbfs.c
include/cbfs.h