## SPDX-License-Identifier: GPL-2.0-only

if PAYLOAD_UBOOT

config PAYLOAD_SPECIFIC_OPTIONS
	def_bool y
	select PAYLOAD_IS_FLAT_BINARY
	select WANT_LINEAR_FRAMEBUFFER

config UBOOT_STABLE
	bool "v2025.07"
	help
	  Stable U-Boot version

config UBOOT_BRANCH_OR_TAG
	string "branch/tag to use for u-boot payload"
	default "v2025.07" if UBOOT_STABLE
	default "master"

config UBOOT_REPO_URL
	string "URL to uboot repository"
	default "http://github.com/u-boot/u-boot/"

config PAYLOAD_CONFIGFILE
	string "U-Boot config file"
	default ""
	help
	  This option allows a platform to set Kconfig options for a basic
	  U-Boot payload.  In general, if the option is used, the default
	  would be "$(top)/src/mainboard/$(MAINBOARDDIR)/config_uboot"
	  for a config stored in the coreboot mainboard directory, or
	  "$(project_dir)/configs/coreboot-x86_defconfig" to use a config
	  from the U-Boot config directory

config PAYLOAD_FILE
	default "payloads/external/U-Boot/build/u-boot.bin"

config PAYLOAD_OPTIONS
	default "-l 0x1110000 -e 0x1110000"

endif
