Move HAVE_FAILOVER_BOOT and USE_FAILOVER_IMAGE from
[coreboot.git] / src / Kconfig
1 ##
2 ## This file is part of the coreboot repair project.
3 ##
4 ## Redistribution and use in source and binary forms, with or without
5 ## modification, are permitted provided that the following conditions
6 ## are met:
7 ## 1. Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ## 2. Redistributions in binary form must reproduce the above copyright
10 ##    notice, this list of conditions and the following disclaimer in the
11 ##    documentation and/or other materials provided with the distribution.
12 ## 3. The name of the author may not be used to endorse or promote products
13 ##    derived from this software without specific prior written permission.
14 ##
15 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 ## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 ## ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 ## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 ## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 ## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 ## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 ## SUCH DAMAGE.
26 ##
27
28 mainmenu "Coreboot Configuration"
29
30 source src/mainboard/Kconfig
31 source src/arch/i386/Kconfig
32 source src/arch/ppc/Kconfig
33 source src/northbridge/Kconfig
34 source src/devices/Kconfig
35 source src/southbridge/Kconfig
36 source src/superio/Kconfig
37 source src/cpu/Kconfig
38
39 config PCI_BUS_SEGN_BITS
40         int
41         default 0
42
43 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
44         hex
45         default 0
46
47 config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
48         hex
49         default 0
50
51 config CPU_ADDR_BITS
52         int
53         default 36
54
55 config XIP_ROM_BASE
56         hex
57         default 0xfffe0000
58
59 config XIP_ROM_SIZE
60         hex
61         default 0x20000
62
63 config LB_CKS_RANGE_START
64         int
65         default 49
66
67 config LB_CKS_RANGE_END
68         int
69         default 125
70
71 config LB_CKS_LOC
72         int
73         default 126
74
75 config LOGICAL_CPUS
76         bool
77         default y
78
79 config PCI_ROM_RUN
80         bool
81         default n
82
83 config HEAP_SIZE
84         hex
85         default 0x2000
86
87 config COREBOOT_V2
88         bool
89         default y
90
91 config COREBOOT_V4
92         bool
93         default y
94
95 config DEBUG
96         bool
97         default n
98
99 config USE_PRINTK_IN_CAR
100         bool
101         default n
102
103 config USE_OPTION_TABLE
104         bool
105         default n
106
107 config MAX_CPUS
108         int
109         default 1
110
111 config MMCONF_SUPPORT_DEFAULT
112         bool
113         default n
114
115 config MMCONF_SUPPORT
116         bool
117         default n
118
119 config LB_MEM_TOPK
120         int
121         default 2048
122
123 config COMPRESSED_PAYLOAD_LZMA
124         bool
125         default y
126
127 config COMPRESSED_PAYLOAD_NRV2B
128         bool
129         default n
130
131 source src/console/Kconfig
132
133 config HAVE_ACPI_RESUME
134         bool
135         default n
136
137 config ACPI_SSDTX_NUM
138         int
139         default 0
140
141 config HAVE_FALLBACK_BOOT
142         bool
143         default y
144
145 config USE_FALLBACK_IMAGE
146         bool
147         default y
148
149 config HAVE_FAILOVER_BOOT
150         bool
151         default n
152
153 config USE_FAILOVER_IMAGE
154         bool
155         default n
156
157 config HAVE_HARD_RESET
158         bool
159         default 0
160
161 config HAVE_INIT_TIMER
162         bool
163         default n
164
165 config HAVE_MAINBOARD_RESOURCES
166         bool
167         default n
168
169 config HAVE_MOVNTI
170         bool
171         default y
172
173 config HAVE_OPTION_TABLE
174         bool
175         default y
176
177 config PIRQ_ROUTE
178         bool
179         default n
180
181 config HAVE_SMI_HANDLER
182         bool
183         default n
184
185 config PCI_IO_CFG_EXT
186         bool
187         default n
188
189 config IOAPIC
190         bool
191         default n
192
193 config USE_WATCHDOG_ON_BOOT
194         bool
195         default n
196
197 config VGA
198         bool
199         default n
200         help
201           Build board-specific VGA code.
202
203 config GFXUMA
204         bool
205         default n
206         help
207           Enable Unified Memory Architecture for graphics.
208
209 # TODO
210 # menu "Drivers"
211
212 # endmenu
213
214 menu "Generated System Tables"
215
216 config HAVE_LOW_TABLES
217         bool
218         default y
219
220 config HAVE_HIGH_TABLES
221         bool "Write 'high' tables to avoid being overwritten in F segment"
222         default y
223
224 config MULTIBOOT
225         bool "Add Multiboot tables (for grub2)"
226         default n
227
228 config HAVE_ACPI_TABLES
229         bool "Generate ACPI tables"
230         default n
231
232 config HAVE_MP_TABLE
233         bool "Generate an MP table"
234         default n
235
236 config HAVE_PIRQ_TABLE
237         bool "Generate a PIRQ table"
238         default n
239
240 endmenu
241
242 menu "Payload"
243
244 config COMPRESSED_PAYLOAD_LZMA
245         bool "Use LZMA compression for payloads"
246         default yes
247
248 choice
249         prompt "Payload type"
250         default PAYLOAD_NONE
251
252 config PAYLOAD_ELF
253         bool "An ELF executable payload file"
254         help
255           Select this option if you have a payload image (an ELF file)
256           which coreboot should run as soon as the basic hardware
257           initialization is completed.
258
259           You will be able to specify the location and file name of the
260           payload image later.
261 config PAYLOAD_NONE
262         bool "No payload"
263         help
264           Select this option if you want to create an "empty" coreboot
265           ROM image for a certain mainboard, i.e. a coreboot ROM image
266           which does not yet contain a payload.
267
268           For such an image to be useful, you have to use the 'cbfs' tool
269           to add a payload to the ROM image later.
270
271 endchoice
272
273 config FALLBACK_PAYLOAD_FILE
274         string "Payload path and filename"
275         depends on PAYLOAD_ELF
276         default "payload.elf"
277         help
278           The path and filename of the ELF executable file to use as payload.
279
280 endmenu
281
282 menu "VGA BIOS"
283
284 config VGA_BIOS
285         bool "Add a VGA BIOS image"
286         help
287           Select this option if you have a VGA BIOS image that you would
288           like to add to your ROM.
289
290           You will be able to specify the location and file name of the
291           image later.
292
293 config FALLBACK_VGA_BIOS_FILE
294         string "VGA BIOS path and filename"
295         depends on VGA_BIOS
296         default "vgabios.bin"
297         help
298           The path and filename of the file to use as VGA BIOS.
299
300 config FALLBACK_VGA_BIOS_ID
301         string "VGA BIOS ID"
302         depends on VGA_BIOS
303         default "1106,3230"
304         help
305           The ID that would associate your VGA BIOS to your video card.
306           (PCI VendorID, PCI Device ID)
307
308 endmenu
309
310 config GDB_STUB
311         bool "GDB debugging support"
312         default y
313         help
314           If enabled, you will be able to set breakpoints for gdb debugging.
315           See src/arch/i386/lib/c_start.S for details.
316