dbae4d03ef
- Add Kconfig and Makefile options to use U-Boot as a payload. - Add Kconfig option for extra cbfstool command line arguments. - Add Kconfig & Makefile option to load the payload as a flat binary. - Add u-boot directory to .gitignore. This is currently working for X-86 only. Graphics worked in U-Boot correctly by initializing the VBIOS and setting up a console mode. Tested in QEMU and on Minnowboard Max. Got into U-Boot, have not booted an OS yet. Change-Id: Ia122a4ad7cd7d96107c1552b0376c8106ca8fb92 Signed-off-by: Martin Roth <martinroth@google.com> Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/12714 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
menu "Payload"
|
|
|
|
choice
|
|
prompt "Add a payload"
|
|
default PAYLOAD_NONE if !ARCH_X86
|
|
default PAYLOAD_SEABIOS if ARCH_X86
|
|
|
|
config PAYLOAD_NONE
|
|
bool "None"
|
|
help
|
|
Select this option if you want to create an "empty" coreboot
|
|
ROM image for a certain mainboard, i.e. a coreboot ROM image
|
|
which does not yet contain a payload.
|
|
|
|
For such an image to be useful, you have to use 'cbfstool'
|
|
to add a payload to the ROM image later.
|
|
|
|
config PAYLOAD_ELF
|
|
bool "An ELF executable payload"
|
|
help
|
|
Select this option if you have a payload image (an ELF file)
|
|
which coreboot should run as soon as the basic hardware
|
|
initialization is completed.
|
|
|
|
You will be able to specify the location and file name of the
|
|
payload image later.
|
|
|
|
source "payloads/external/*/Kconfig.name"
|
|
|
|
endchoice
|
|
|
|
source "payloads/external/*/Kconfig"
|
|
|
|
config PAYLOAD_FILE
|
|
string "Payload path and filename"
|
|
depends on PAYLOAD_ELF
|
|
default "payload.elf"
|
|
help
|
|
The path and filename of the ELF executable file to use as payload.
|
|
|
|
# TODO: Defined if no payload? Breaks build?
|
|
config COMPRESSED_PAYLOAD_LZMA
|
|
bool "Use LZMA compression for payloads"
|
|
default y
|
|
depends on !PAYLOAD_NONE && !PAYLOAD_LINUX
|
|
help
|
|
In order to reduce the size payloads take up in the ROM chip
|
|
coreboot can compress them using the LZMA algorithm.
|
|
|
|
config PAYLOAD_OPTIONS
|
|
string
|
|
default ""
|
|
help
|
|
Additional cbfstool options for the payload
|
|
|
|
config PAYLOAD_IS_FLAT_BINARY
|
|
def_bool n
|
|
help
|
|
Add the payload to cbfs as a flat binary type instead of as an
|
|
elf payload
|
|
|
|
endmenu
|
|
|