coreboot/payloads/external/depthcharge/Kconfig
Cliff Huang 8d020508fc payloads/depthcharge: Add default 64-bit libpayload config
Add CONFIG_LP_DEFCONFIG_OVERRIDE_X64 flag to select default 64-bit
config file in payloads/libpayload/configs directory.

This is used in standalone environment. The existing libpayload
deconfig file is for boards with 32-bit format and deconfig_64
file is added for 64-bit without adding specific
board.[board name] file in libpayload.

BUG=none
TEST=Build with this new flag and check that the libpayload and
depthcharge.elf are built in 64-bit format.

Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: Iac07cf9e3c11e49955c69553407be76ef4f8c060
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84107
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kim, Wonkyu <wonkyu.kim@intel.com>
2026-02-14 22:30:52 +00:00

76 lines
2 KiB
Text

## SPDX-License-Identifier: GPL-2.0-only
if PAYLOAD_DEPTHCHARGE
choice
prompt "Depthcharge version"
config DEPTHCHARGE_STABLE
bool "stable"
help
Latest stable version.
config DEPTHCHARGE_MASTER
bool "master"
help
Newest Depthcharge version.
config DEPTHCHARGE_REVISION
bool "git revision"
help
Select this option if you have a specific commit or branch that
you want to use as the revision from which to build Depthcharge.
You will be able to specify the name of a branch or a commit SHA
later.
endchoice
config DEPTHCHARGE_REPO
string "depthcharge repo site"
default "https://chromium.googlesource.com/chromiumos/platform/depthcharge"
help
repo site
config DEPTHCHARGE_BRANCH
string "branch from the depthcharge repo"
default "origin/main"
help
repo branch name
config DEPTHCHARGE_REVISION_ID
string "Insert a commit's SHA-1 or a branch name"
depends on DEPTHCHARGE_REVISION
default "origin/master"
help
The commit's SHA-1 or branch name of the revision to use.
config PAYLOAD_FILE
string
default "payloads/external/depthcharge/depthcharge/build/depthcharge.elf"
config MAINBOARD_DEPTHCHARGE
string ""
help
Override BOARD setting for depthcharge
config LP_DEFCONFIG_OVERRIDE
bool "Use default libpayload config"
help
The Depthcharge makefile looks for a file config.<boardname> in the
libpayload/configs directory. Say Y here to use the file defconfig
instead. This is can be a convenience for development purposes, or
if the defaults in defconfig are sufficient for your system.
config LP_DEFCONFIG_OVERRIDE_X64
bool "Use default 64-bit libpayload config"
depends on !LP_DEFCONFIG_OVERRIDE
help
The Depthcharge makefile looks for a file config.<boardname> in the
libpayload/configs directory. Say Y here to use the file defconfig
for 64-bit format instead. This can be convenient for development for
a new board, or if the defaults in 64-bit defconfig file (i.e.
defconfig_64) are sufficient for your system without creating
board.[name] file.
endif