blob: c7b9e2aba4d0d76571998054eba683f8971a1af9 [file] [log] [blame]
Martin Roth21c06502016-02-04 19:52:27 -07001menu "Payload"
2
3choice
4 prompt "Add a payload"
5 default PAYLOAD_NONE if !ARCH_X86
6 default PAYLOAD_SEABIOS if ARCH_X86
7
8config PAYLOAD_NONE
9 bool "None"
10 help
11 Select this option if you want to create an "empty" coreboot
12 ROM image for a certain mainboard, i.e. a coreboot ROM image
13 which does not yet contain a payload.
14
15 For such an image to be useful, you have to use 'cbfstool'
16 to add a payload to the ROM image later.
17
18config PAYLOAD_ELF
19 bool "An ELF executable payload"
20 help
21 Select this option if you have a payload image (an ELF file)
22 which coreboot should run as soon as the basic hardware
23 initialization is completed.
24
25 You will be able to specify the location and file name of the
26 payload image later.
27
28source "payloads/external/*/Kconfig.name"
29
30endchoice
31
32source "payloads/external/*/Kconfig"
33
34config PAYLOAD_FILE
35 string "Payload path and filename"
36 depends on PAYLOAD_ELF
37 default "payload.elf"
38 help
39 The path and filename of the ELF executable file to use as payload.
40
41# TODO: Defined if no payload? Breaks build?
42config COMPRESSED_PAYLOAD_LZMA
43 bool "Use LZMA compression for payloads"
44 default y
45 depends on !PAYLOAD_NONE && !PAYLOAD_LINUX
46 help
47 In order to reduce the size payloads take up in the ROM chip
48 coreboot can compress them using the LZMA algorithm.
49
Martin Rothdbae4d02015-12-11 12:24:33 -070050config PAYLOAD_OPTIONS
51 string
52 default ""
53 help
54 Additional cbfstool options for the payload
55
56config PAYLOAD_IS_FLAT_BINARY
57 def_bool n
58 help
59 Add the payload to cbfs as a flat binary type instead of as an
60 elf payload
61
Martin Roth5ad9aca2016-03-07 19:21:45 -070062menu "Secondary Payloads"
63
Martin Roth4351ace2016-02-16 19:40:47 -070064config COREINFO_SECONDARY_PAYLOAD
65 bool "Load coreinfo as a secondary payload"
66 default n
67 depends on ARCH_X86
68 help
69 coreinfo can be loaded as a secondary payload under SeaBIOS, GRUB,
70 or any other payload that can load additional payloads.
Martin Roth21c06502016-02-04 19:52:27 -070071
Martin Rothbe63a242016-02-28 15:56:27 -080072config MEMTEST_SECONDARY_PAYLOAD
73 bool "Load Memtest86+ as a secondary payload"
74 default n
Martin Roth5ad9aca2016-03-07 19:21:45 -070075 depends on ARCH_X86
Martin Rothbe63a242016-02-28 15:56:27 -080076 help
77 Memtest86+ can be loaded as a secondary payload under SeaBIOS, GRUB,
78 or any other payload that can load additional payloads.
79
Martin Roth5ad9aca2016-03-07 19:21:45 -070080endmenu # "Secondary Payloads"
Martin Roth4351ace2016-02-16 19:40:47 -070081endmenu