[U-Boot] [PATCH v2 0/6] cbfs: Allow use before relocation / BSS

Simon Glass sjg at chromium.org
Thu Aug 15 01:56:09 UTC 2019


At present CBFS cannot be used in SPL before BSS is available. This is
inconvenient if CBFS holds the FSP code needed to init SDRAM.

The problem is fairly easy to fix, by putting all static variables into
a struct that can be allocated.

This series updates CBFS towards this goal, but does not convert all
functions. It also tidies up the style a little.

Changes in v2:
- Fix typo in Kconfig help
- Make cbfs_init() static
- Move whitespace changes to next patch

Simon Glass (6):
  cbfs: Allow CBFS to be used in SPL
  cbfs: Move declarations above functions
  cbfs: Move static variables into a struct
  cbfs: Move result variable into the struct
  cbfs: Add functions to support multiple CBFSs
  cbfs: Rename camel-case variables

 cmd/cbfs.c      |   4 +-
 fs/Makefile     |   1 +
 fs/cbfs/Kconfig |  12 +++
 fs/cbfs/cbfs.c  | 231 ++++++++++++++++++++++++++++++++----------------
 include/cbfs.h  |  29 ++++++
 5 files changed, 198 insertions(+), 79 deletions(-)

-- 
2.23.0.rc1.153.gdeed80330f-goog



More information about the U-Boot mailing list