2 # Copyright (c) 2006 Ondrej Palkovsky
3 # Copyright (c) 2009 Martin Decky
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # - Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 # - The name of the author may not be used to endorse or promote products
16 # derived from this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 ## General platform options
33 @ "abs32le" abstract 32-bit little endian
34 @ "amd64" AMD64/Intel EM64T (PC)
36 @ "ia32" Intel IA-32 (PC)
38 @ "mips32" MIPS 32-bit
39 @ "mips64" MIPS 64-bit
40 @ "ppc32" PowerPC 32-bit (iMac G4)
41 @ "sparc64" Sun UltraSPARC 64-bit
46 @ "bgxemul" GXEmul big endian
47 @ "lgxemul" GXEmul little endian
48 ! [PLATFORM=mips32] MACHINE (choice)
52 ! [PLATFORM=mips64] MACHINE (choice)
55 @ "i460GX" i460GX chipset machine
56 @ "ski" Ski ia64 simulator
57 ! [PLATFORM=ia64] MACHINE (choice)
60 @ "generic" Generic Sun workstation or server
61 ! [PLATFORM=sparc64] MACHINE (choice)
64 @ "gta02" GTA02 / Neo FreeRunner
65 @ "testarm" GXEmul Testarm
66 @ "integratorcp" Integratorcp
67 ! [PLATFORM=arm32] MACHINE (choice)
70 @ "pentium4" Pentium 4
71 @ "pentium3" Pentium 3
72 @ "core" Core Solo/Duo
73 @ "athlon_xp" Athlon XP
74 @ "athlon_mp" Athlon MP
76 ! [PLATFORM=ia32] PROCESSOR (choice)
80 ! [PLATFORM=amd64] PROCESSOR (choice)
83 @ "us" UltraSPARC I-II subarchitecture
84 @ "us3" UltraSPARC III-IV subarchitecture
85 @ "sun4v" Niagara (sun4v)
86 ! [PLATFORM=sparc64&MACHINE=generic] PROCESSOR (choice)
95 ## Mapping between platform and kernel architecture
99 ! [PLATFORM=abs32le] KARCH (choice)
101 % Kernel architecture
103 ! [PLATFORM=amd64] KARCH (choice)
105 % Kernel architecture
107 ! [PLATFORM=arm32] KARCH (choice)
109 % Kernel architecture
111 ! [PLATFORM=ia32] KARCH (choice)
113 % Kernel architecture
115 ! [PLATFORM=ia32xen] KARCH (choice)
117 % Kernel architecture
119 ! [PLATFORM=ia64] KARCH (choice)
121 % Kernel architecture
123 ! [PLATFORM=mips32] KARCH (choice)
125 % Kernel architecture
127 ! [PLATFORM=mips64] KARCH (choice)
129 % Kernel architecture
131 ! [PLATFORM=ppc32] KARCH (choice)
133 % Kernel architecture
135 ! [PLATFORM=ppc64] KARCH (choice)
137 % Kernel architecture
139 ! [PLATFORM=sparc64] KARCH (choice)
142 ## Mapping between platform and user space architecture
144 % User space architecture
146 ! [PLATFORM=abs32le] UARCH (choice)
148 % User space architecture
150 ! [PLATFORM=amd64] UARCH (choice)
152 % User space architecture
154 ! [PLATFORM=arm32] UARCH (choice)
156 % User space architecture
158 ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
160 % User space architecture
162 ! [PLATFORM=ia64] UARCH (choice)
164 % User space architecture
166 ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=lgxemul)] UARCH (choice)
168 % User space architecture
170 ! [PLATFORM=mips32&MACHINE=bgxemul] UARCH (choice)
172 % User space architecture
174 ! [PLATFORM=mips64] UARCH (choice)
176 % User space architecture
178 ! [PLATFORM=ppc32] UARCH (choice)
180 % User space architecture
182 ! [PLATFORM=ppc64] UARCH (choice)
184 % User space architecture
186 ! [PLATFORM=sparc64] UARCH (choice)
189 ## Mapping between platform and boot architecture
193 ! [PLATFORM=abs32le] BARCH (choice)
197 ! [PLATFORM=amd64] BARCH (choice)
201 ! [PLATFORM=arm32] BARCH (choice)
205 ! [PLATFORM=ia32] BARCH (choice)
209 ! [PLATFORM=ia32xen] BARCH (choice)
213 ! [PLATFORM=ia64] BARCH (choice)
217 ! [PLATFORM=mips32] BARCH (choice)
221 ! [PLATFORM=mips64] BARCH (choice)
225 ! [PLATFORM=ppc32] BARCH (choice)
229 ! [PLATFORM=ppc64] BARCH (choice)
233 ! [PLATFORM=sparc64] BARCH (choice)
236 ## Mapping between platform and image format
240 ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
244 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
248 ! [PLATFORM=mips64] IMAGE (choice)
254 @ "gcc_cross" GNU C Compiler (cross-compiler)
255 @ "gcc_native" GNU C Compiler (native)
256 @ "icc" Intel C Compiler
257 @ "suncc" Sun Studio C Compiler
259 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
262 @ "gcc_cross" GNU C Compiler (cross-compiler)
263 @ "gcc_native" GNU C Compiler (native)
264 @ "icc" Intel C Compiler
265 ! [PLATFORM=ia64] COMPILER (choice)
268 @ "gcc_cross" GNU C Compiler (cross-compiler)
269 @ "gcc_native" GNU C Compiler (native)
270 @ "suncc" Sun Studio C Compiler
271 ! [PLATFORM=sparc64] COMPILER (choice)
274 @ "gcc_cross" GNU C Compiler (cross-compiler)
275 @ "gcc_native" GNU C Compiler (native)
276 ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice)
279 @ "gcc_cross" GNU C Compiler (cross-compiler)
280 @ "gcc_native" GNU C Compiler (native)
282 ! [PLATFORM=abs32le] COMPILER (choice)
285 ## Cross-compiler target for abstract architecture
287 % Cross-compiler target
290 @ "mips32" MIPS 32-bit
291 ! [PLATFORM=abs32le&COMPILER=gcc_cross] CROSS_TARGET (choice)
294 ## Kernel configuration
297 ! [PLATFORM=ia32&(PROCESSOR=athlon_xp|PROCESSOR=athlon_mp|PROCESSOR=pentium3)] CONFIG_FENCES_P3 (y)
300 ! [PLATFORM=ia32&(PROCESSOR=pentium4|PROCESSOR=core)] CONFIG_FENCES_P4 (y)
303 ! [PLATFORM=amd64] CONFIG_FENCES_P4 (y)
306 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
308 % Hierarchical page tables support
309 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
311 % Page hash table support
312 ! [PLATFORM=ia64|PLATFORM=mips64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
314 % Software integer division support
315 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
318 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
321 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
323 % OpenFirmware tree support
324 ! [PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_OFW_TREE (y)
326 % OpenFirmware PCI bus support
327 ! [PLATFORM=sparc64] CONFIG_OFW_PCI (y)
329 % Multiboot standard support
330 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_MULTIBOOT (y)
333 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64] CONFIG_FPU (y)
336 ! [PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FPU (y)
339 ## Kernel features options
342 ! [(PLATFORM=ia32&PROCESSOR!=athlon_xp)|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ia64|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)|PLATFORM=abs32le] CONFIG_SMP (y/n)
347 % Deadlock detection support for spinlocks
348 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
350 % Lazy FPU context switching
351 ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
354 ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
357 ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
359 % IO SAPIC on default address support
360 ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
362 % Virtually indexed D-cache support
363 ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
366 ! [PROCESSOR=sun4v&CONFIG_SMP=y] CONFIG_SIMICS_SMP_HACK (n/y)
368 % Support for userspace debuggers
369 ! CONFIG_UDEBUG (y/n)
371 % Kernel console support
372 ! CONFIG_KCONSOLE (y/n)
374 % Kernel symbol information
375 ! CONFIG_SYMTAB (y/n)
377 % Detailed kernel logging
380 % Kernel function tracing
383 % Compile kernel tests
386 % Use link-time optimization
387 ! [COMPILER=gcc_cross|COMPILER=gcc_native] CONFIG_LTO (n/y)
393 @ "generic" Keyboard or serial line
394 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_HID_IN (choice)
397 @ "generic" Keyboard or serial line
398 @ "none" No input device
399 ! [PLATFORM=ia32|(PLATFORM=arm32&MACHINE=testarm)|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_HID_IN (choice)
402 @ "generic" Keyboard or serial line
403 @ "keyboard" Keyboard
404 @ "serial" Serial line
405 @ "none" No input device
406 ! [PLATFORM=ia64&MACHINE=i460GX] CONFIG_HID_IN (choice)
408 % Output device class
409 @ "generic" Monitor or serial line
410 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp)] CONFIG_HID_OUT (choice)
412 % Output device class
413 @ "generic" Monitor or serial line
414 @ "none" No output device
415 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)] CONFIG_HID_OUT (choice)
417 % Output device class
418 @ "generic" Monitor or serial line
420 @ "serial" Serial line
421 @ "none" No output device
422 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] CONFIG_HID_OUT (choice)
424 % Output device class
425 @ "generic" Monitor or serial line
427 @ "serial" Serial line
428 @ "none" No output device
429 ! [PLATFORM=arm32&MACHINE=testarm] CONFIG_HID_OUT (choice)
431 % PC keyboard support
432 ! [CONFIG_HID_IN=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_PC_KBD (y/n)
434 % PC keyboard support
435 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_PC_KBD (y/n)
437 % PC keyboard support
438 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PC_KBD (y/n)
440 % Support for msim/GXemul keyboard
441 ! [CONFIG_HID_IN=generic&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_KBD (y/n)
443 % Support for msim/GXemul printer
444 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_PRN (y/n)
446 % Support for GXemul keyboard
447 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=testarm] CONFIG_ARM_KBD (y/n)
449 % Support for GXemul printer
450 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=testarm] CONFIG_ARM_PRN (y/n)
452 % Support for VIA CUDA controller
453 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n)
455 % Support for NS16550 controller
456 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic] CONFIG_NS16550 (y/n)
458 % Support for NS16550 controller
459 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n)
461 % Support for Samsung S3C24XX on-chip UART
462 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n)
464 % Support for Samsung S3C24XX on-chip interrupt controller
465 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y)
467 % Support for i8042 controller
468 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
470 % Support for pl050 controller
471 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PL050 (y)
473 % Sun keyboard support
474 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic&CONFIG_NS16550=y] CONFIG_SUN_KBD (y)
476 % Macintosh ADB keyboard support
477 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ppc32&(CONFIG_VIA_CUDA=y)] CONFIG_MAC_KBD (y)
479 % Dummy serial line input
480 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y)
482 % Dummy serial line output
483 ! [CONFIG_MIPS_PRN=y|CONFIG_ARM_PRN=y] CONFIG_DSRLNOUT (y)
485 % Serial line input module
486 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y)
489 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n)
492 ! [CONFIG_HID_OUT=generic&PLATFORM=ia64&MACHINE=i460GX] CONFIG_EGA (y/n)
494 % Framebuffer support
495 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
497 % Framebuffer support
498 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FB (y/n)
500 % Framebuffer support
501 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n)
503 % Framebuffer support
504 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=sparc64&MACHINE=generic] CONFIG_FB (y/n)
506 % Default framebuffer mode
522 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_MODE (choice)
524 % Default framebuffer depth
528 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
530 % Start AP processors by the loader
531 ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
533 % Dynamic linking support
534 ! [PLATFORM=ia32] CONFIG_RTLD (n/y)
535 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n)
537 % Build shared libraries
538 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y)
539 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n)
541 % Link against shared libraries
542 ! [CONFIG_BUILD_SHARED_LIBS=y] CONFIG_USE_SHARED_LIBS (n/y)
543 ! [CONFIG_BUILD_SHARED_LIBS=n] CONFIG_USE_SHARED_LIBS (n)
545 % Launch (devman) test drivers
546 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y)
548 % Load disk drivers on startup
549 ! CONFIG_START_BD (n/y)
551 % Mount /data on startup
552 ! [CONFIG_START_BD=y] CONFIG_MOUNT_DATA (n/y)
555 ! CONFIG_WRITE_CORE_FILES (n/y)
557 % Include development files (headers, libraries)
558 ! [RDFMT=tmpfs|RDFMT=ext2fs] CONFIG_DEVEL_FILES (n/y)
561 ! CONFIG_STRIP_BINARIES (n/y)
564 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
566 % Barebone build with essential binaries only
567 ! CONFIG_BAREBONE (n/y)
572 % Build binutils binaries
573 ! CONFIG_BINUTILS (n/y)
575 % Line debugging information
576 ! [CONFIG_STRIP_BINARIES!=y] CONFIG_LINE_DEBUG (n/y)
580 % USB release build (less logging)
581 ! CONFIG_USB_RELEASE_BUILD (y/n)
583 % Start virtual USB host controller
584 ! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
586 % OHCI root hub port power switching
587 @ "no" All root hub ports are always powered.
588 @ "ganged" Root hub ports are all powered or all off.
589 @ "per_port" Powered status of every root hub port is independent.
590 ! [PLATFORM=ia32|PLATFORM=amd64] OHCI_POWER_SWITCH (choice)
592 % GRUB boot loader architecture
594 @ "efi" GRUB for UEFI
595 ! [PLATFORM=ia32|PLATFORM=amd64] GRUB_ARCH (choice)