fs: Kconfig: Add a separate config for FS_CBFS

Rather than using CMD_CBFS for both the filesystem and its command, we
should have a separate option for each. This allows us to enable CBFS
support without the command, if desired, which reduces U-Boot's size
slightly.

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: imply FS_CBFS on SYS_COREBOOT]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2017-04-26 22:27:59 -06:00 committed by Tom Rini
parent d66a10fc00
commit deb9599915
8 changed files with 16 additions and 1 deletions

View file

@ -4,6 +4,7 @@ config SYS_COREBOOT
bool bool
default y default y
imply CMD_CBFS imply CMD_CBFS
imply FS_CBFS
config CBMEM_CONSOLE config CBMEM_CONSOLE
bool bool

View file

@ -882,6 +882,7 @@ endmenu
menu "Filesystem commands" menu "Filesystem commands"
config CMD_CBFS config CMD_CBFS
bool "Enable the 'cbfs' command" bool "Enable the 'cbfs' command"
depends on FS_CBFS
help help
Define this to enable support for reading from a Coreboot Define this to enable support for reading from a Coreboot
filesystem. This is a ROM-based filesystem used for accessing files filesystem. This is a ROM-based filesystem used for accessing files

View file

@ -167,6 +167,7 @@ CONFIG_CONSOLE_ROTATION=y
CONFIG_CONSOLE_TRUETYPE=y CONFIG_CONSOLE_TRUETYPE=y
CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
CONFIG_VIDEO_SANDBOX_SDL=y CONFIG_VIDEO_SANDBOX_SDL=y
CONFIG_FS_CBFS=y
CONFIG_CMD_DHRYSTONE=y CONFIG_CMD_DHRYSTONE=y
CONFIG_TPM=y CONFIG_TPM=y
CONFIG_LZ4=y CONFIG_LZ4=y

View file

@ -169,6 +169,7 @@ CONFIG_CONSOLE_ROTATION=y
CONFIG_CONSOLE_TRUETYPE=y CONFIG_CONSOLE_TRUETYPE=y
CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
CONFIG_VIDEO_SANDBOX_SDL=y CONFIG_VIDEO_SANDBOX_SDL=y
CONFIG_FS_CBFS=y
CONFIG_CMD_DHRYSTONE=y CONFIG_CMD_DHRYSTONE=y
CONFIG_TPM=y CONFIG_TPM=y
CONFIG_LZ4=y CONFIG_LZ4=y

View file

@ -173,6 +173,7 @@ CONFIG_CONSOLE_ROTATION=y
CONFIG_CONSOLE_TRUETYPE=y CONFIG_CONSOLE_TRUETYPE=y
CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
CONFIG_VIDEO_SANDBOX_SDL=y CONFIG_VIDEO_SANDBOX_SDL=y
CONFIG_FS_CBFS=y
CONFIG_CMD_DHRYSTONE=y CONFIG_CMD_DHRYSTONE=y
CONFIG_TPM=y CONFIG_TPM=y
CONFIG_LZ4=y CONFIG_LZ4=y

View file

@ -4,6 +4,8 @@
menu "File systems" menu "File systems"
source "fs/cbfs/Kconfig"
source "fs/ext4/Kconfig" source "fs/ext4/Kconfig"
source "fs/reiserfs/Kconfig" source "fs/reiserfs/Kconfig"

View file

@ -12,7 +12,7 @@ obj-$(CONFIG_SPL_EXT_SUPPORT) += ext4/
else else
obj-y += fs.o obj-y += fs.o
obj-$(CONFIG_CMD_CBFS) += cbfs/ obj-$(CONFIG_FS_CBFS) += cbfs/
obj-$(CONFIG_CMD_CRAMFS) += cramfs/ obj-$(CONFIG_CMD_CRAMFS) += cramfs/
obj-$(CONFIG_FS_EXT4) += ext4/ obj-$(CONFIG_FS_EXT4) += ext4/
obj-y += fat/ obj-y += fat/

8
fs/cbfs/Kconfig Normal file
View file

@ -0,0 +1,8 @@
config FS_CBFS
bool "Enable CBFS (Coreboot Filesystem)"
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. You can also enable
CMD_CBFS to get command-line access.