Skip to content

Commit

Permalink
cbfs: Allow CBFS to be used in SPL
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
  • Loading branch information
sjg20 authored and lbmeng committed Aug 18, 2019
1 parent 0c4a0e6 commit 72b2465
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_FS_LOADER) += fs.o
obj-$(CONFIG_SPL_FS_FAT) += fat/
obj-$(CONFIG_SPL_FS_EXT4) += ext4/
obj-$(CONFIG_SPL_FS_CBFS) += cbfs/
else
obj-y += fs.o

Expand Down
12 changes: 12 additions & 0 deletions fs/cbfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 72b2465

Please sign in to comment.