arch/x86: Add a choice for selecting normal/fallback cbfs prefix

Setting the cbfs prefix is prone to error. Therefore add a Kconfig
choice for 2 common values, fallback and normal, while still keeping
the ability to specify an arbitrary value.

Change-Id: I04222120bd1241c3b0996afa27dcc35ac42fbbc8
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35822
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans
2019-10-06 13:34:20 +02:00
committed by Nico Huber
parent 2a0fbe34ba
commit 6010eb27c9

View File

@@ -37,9 +37,26 @@ config CONFIGURABLE_CBFS_PREFIX
help help
Select this to prompt to use to configure the prefix for cbfs files. Select this to prompt to use to configure the prefix for cbfs files.
choice
prompt "CBFS prefix to use"
depends on CONFIGURABLE_CBFS_PREFIX
default CBFS_PREFIX_FALLBACK
config CBFS_PREFIX_FALLBACK
bool "fallback"
config CBFS_PREFIX_NORMAL
bool "normal"
config CBFS_PREFIX_DIY
bool "Define your own cbfs prefix"
endchoice
config CBFS_PREFIX config CBFS_PREFIX
string "CBFS prefix to use" if CONFIGURABLE_CBFS_PREFIX string "CBFS prefix to use" if CBFS_PREFIX_DIY
default "fallback" default "fallback" if !CONFIGURABLE_CBFS_PREFIX || CBFS_PREFIX_FALLBACK
default "normal" if CBFS_PREFIX_NORMAL
help help
Select the prefix to all files put into the image. It's "fallback" Select the prefix to all files put into the image. It's "fallback"
by default, "normal" is a common alternative. by default, "normal" is a common alternative.