fs: Kconfig: Add a separate config for FS_CBFS
authorSimon Glass <sjg@chromium.org>
Thu, 27 Apr 2017 04:27:59 +0000 (22:27 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 30 Apr 2017 17:40:57 +0000 (13:40 -0400)
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>
arch/x86/cpu/coreboot/Kconfig
cmd/Kconfig
configs/sandbox_defconfig
configs/sandbox_noblk_defconfig
configs/sandbox_spl_defconfig
fs/Kconfig
fs/Makefile
fs/cbfs/Kconfig [new file with mode: 0644]

index 0a4a82a..9820651 100644 (file)
@@ -4,6 +4,7 @@ config SYS_COREBOOT
        bool
        default y
        imply CMD_CBFS
+       imply FS_CBFS
 
 config CBMEM_CONSOLE
        bool
index 8a16ed7..7a12441 100644 (file)
@@ -882,6 +882,7 @@ endmenu
 menu "Filesystem commands"
 config CMD_CBFS
        bool "Enable the 'cbfs' command"
+       depends on FS_CBFS
        help
          Define this to enable support for reading from a Coreboot
          filesystem. This is a ROM-based filesystem used for accessing files
index 2dbeacc..8d51c49 100644 (file)
@@ -167,6 +167,7 @@ CONFIG_CONSOLE_ROTATION=y
 CONFIG_CONSOLE_TRUETYPE=y
 CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
 CONFIG_VIDEO_SANDBOX_SDL=y
+CONFIG_FS_CBFS=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_TPM=y
 CONFIG_LZ4=y
index 56b5e68..8669c6c 100644 (file)
@@ -169,6 +169,7 @@ CONFIG_CONSOLE_ROTATION=y
 CONFIG_CONSOLE_TRUETYPE=y
 CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
 CONFIG_VIDEO_SANDBOX_SDL=y
+CONFIG_FS_CBFS=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_TPM=y
 CONFIG_LZ4=y
index eb70a5f..f22ed39 100644 (file)
@@ -173,6 +173,7 @@ CONFIG_CONSOLE_ROTATION=y
 CONFIG_CONSOLE_TRUETYPE=y
 CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y
 CONFIG_VIDEO_SANDBOX_SDL=y
+CONFIG_FS_CBFS=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_TPM=y
 CONFIG_LZ4=y
index 41bb0b9..e6438ad 100644 (file)
@@ -4,6 +4,8 @@
 
 menu "File systems"
 
+source "fs/cbfs/Kconfig"
+
 source "fs/ext4/Kconfig"
 
 source "fs/reiserfs/Kconfig"
index 51d06fc..5c90656 100644 (file)
@@ -12,7 +12,7 @@ obj-$(CONFIG_SPL_EXT_SUPPORT) += ext4/
 else
 obj-y                          += fs.o
 
-obj-$(CONFIG_CMD_CBFS) += cbfs/
+obj-$(CONFIG_FS_CBFS) += cbfs/
 obj-$(CONFIG_CMD_CRAMFS) += cramfs/
 obj-$(CONFIG_FS_EXT4) += ext4/
 obj-y += fat/
diff --git a/fs/cbfs/Kconfig b/fs/cbfs/Kconfig
new file mode 100644 (file)
index 0000000..1608954
--- /dev/null
@@ -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.