diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-14 19:56:10 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-08-18 21:54:10 +0800 |
commit | 72b2465c6b897f7ac4a2a151f648dff9239b1cfe (patch) | |
tree | e432f4ce9a7782eea5e2160d7e0d594a1c50a8f2 /fs/cbfs | |
parent | 0c4a0e601bad7c590c968d0e4c4a7e9f440cedd6 (diff) | |
download | u-boot-72b2465c6b897f7ac4a2a151f648dff9239b1cfe.zip u-boot-72b2465c6b897f7ac4a2a151f648dff9239b1cfe.tar.gz u-boot-72b2465c6b897f7ac4a2a151f648dff9239b1cfe.tar.bz2 |
cbfs: Allow CBFS to be used in SPL
Add a new Kconfig option to enable CBFS in SPL. This can be useful when
the memory-init code is in CBFS.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'fs/cbfs')
-rw-r--r-- | fs/cbfs/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/cbfs/Kconfig b/fs/cbfs/Kconfig index 1608954..03980d8 100644 --- a/fs/cbfs/Kconfig +++ b/fs/cbfs/Kconfig @@ -6,3 +6,15 @@ config FS_CBFS on systems that use coreboot as the first boot-loader and then load U-Boot to actually boot the Operating System. You can also enable CMD_CBFS to get command-line access. + +config SPL_FS_CBFS + bool "Enable CBFS (Coreboot Filesystem) in SPL" + help + Define this to enable support for reading from a Coreboot + filesystem. This is a ROM-based filesystem used for accessing files + on systems that use coreboot as the first boot-loader and then load + U-Boot to actually boot the Operating System. + + Note that most functions in the CBFS API do not work with SPL. Only + those which accept a cbfs_priv * can be used, since BSS is not + available. |