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 @ "beagleboardxm" BeogleBoard-xM
68 @ "beaglebone" BeogleBone
69 ! [PLATFORM=arm32] MACHINE (choice)
72 @ "pentium4" Pentium 4
73 @ "pentium3" Pentium 3
74 @ "core" Core Solo/Duo
75 @ "athlon_xp" Athlon XP
76 @ "athlon_mp" Athlon MP
78 ! [PLATFORM=ia32] PROCESSOR (choice)
82 ! [PLATFORM=amd64] PROCESSOR (choice)
85 @ "us" UltraSPARC I-II subarchitecture
86 @ "us3" UltraSPARC III-IV subarchitecture
87 @ "sun4v" Niagara (sun4v)
88 ! [PLATFORM=sparc64&MACHINE=generic] PROCESSOR (choice)
92 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=gxemul)] PROCESSOR (choice)
96 ! [PLATFORM=arm32&MACHINE=integratorcp] PROCESSOR (choice)
100 ! [PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] PROCESSOR (choice)
103 @ "tmpfs" TMPFS image
105 @ "ext4fs" ext4 image
109 ## Mapping between platform and kernel architecture
111 % Kernel architecture
113 ! [PLATFORM=abs32le] KARCH (choice)
115 % Kernel architecture
117 ! [PLATFORM=amd64] KARCH (choice)
119 % Kernel architecture
121 ! [PLATFORM=arm32] KARCH (choice)
123 % Kernel architecture
125 ! [PLATFORM=ia32] KARCH (choice)
127 % Kernel architecture
129 ! [PLATFORM=ia32xen] KARCH (choice)
131 % Kernel architecture
133 ! [PLATFORM=ia64] KARCH (choice)
135 % Kernel architecture
137 ! [PLATFORM=mips32] KARCH (choice)
139 % Kernel architecture
141 ! [PLATFORM=mips64] KARCH (choice)
143 % Kernel architecture
145 ! [PLATFORM=ppc32] KARCH (choice)
147 % Kernel architecture
149 ! [PLATFORM=ppc64] KARCH (choice)
151 % Kernel architecture
153 ! [PLATFORM=sparc64] KARCH (choice)
156 ## Mapping between platform and user space architecture
158 % User space architecture
160 ! [PLATFORM=abs32le] UARCH (choice)
162 % User space architecture
164 ! [PLATFORM=amd64] UARCH (choice)
166 % User space architecture
168 ! [PLATFORM=arm32] UARCH (choice)
170 % User space architecture
172 ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
174 % User space architecture
176 ! [PLATFORM=ia64] UARCH (choice)
178 % User space architecture
180 ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=lgxemul)] UARCH (choice)
182 % User space architecture
184 ! [PLATFORM=mips32&MACHINE=bgxemul] UARCH (choice)
186 % User space architecture
188 ! [PLATFORM=mips64] UARCH (choice)
190 % User space architecture
192 ! [PLATFORM=ppc32] UARCH (choice)
194 % User space architecture
196 ! [PLATFORM=ppc64] UARCH (choice)
198 % User space architecture
200 ! [PLATFORM=sparc64] UARCH (choice)
203 ## Mapping between platform and boot architecture
207 ! [PLATFORM=abs32le] BARCH (choice)
211 ! [PLATFORM=amd64] BARCH (choice)
215 ! [PLATFORM=arm32] BARCH (choice)
219 ! [PLATFORM=ia32] BARCH (choice)
223 ! [PLATFORM=ia32xen] BARCH (choice)
227 ! [PLATFORM=ia64] BARCH (choice)
231 ! [PLATFORM=mips32] BARCH (choice)
235 ! [PLATFORM=mips64] BARCH (choice)
239 ! [PLATFORM=ppc32] BARCH (choice)
243 ! [PLATFORM=ppc64] BARCH (choice)
247 ! [PLATFORM=sparc64] BARCH (choice)
250 ## Mapping between platform and image format
254 ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
258 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
262 ! [PLATFORM=mips64] IMAGE (choice)
268 @ "gcc_cross" GNU C Compiler (cross-compiler)
269 @ "gcc_native" GNU C Compiler (native)
270 @ "icc" Intel C Compiler
272 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
275 @ "gcc_cross" GNU C Compiler (cross-compiler)
276 @ "gcc_native" GNU C Compiler (native)
277 @ "icc" Intel C Compiler
278 ! [PLATFORM=ia64] COMPILER (choice)
281 @ "gcc_cross" GNU C Compiler (cross-compiler)
282 @ "gcc_native" GNU C Compiler (native)
283 ! [PLATFORM=sparc64] COMPILER (choice)
286 @ "gcc_cross" GNU C Compiler (cross-compiler)
287 @ "gcc_native" GNU C Compiler (native)
288 ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice)
291 @ "gcc_cross" GNU C Compiler (cross-compiler)
292 @ "gcc_native" GNU C Compiler (native)
294 ! [PLATFORM=abs32le] COMPILER (choice)
297 ## Cross-compiler target for abstract architecture
299 % Cross-compiler target
302 @ "mips32" MIPS 32-bit
303 ! [PLATFORM=abs32le&COMPILER=gcc_cross] CROSS_TARGET (choice)
306 ## Kernel configuration
309 ! [PLATFORM=ia32&(PROCESSOR=athlon_xp|PROCESSOR=athlon_mp|PROCESSOR=pentium3)] CONFIG_FENCES_P3 (y)
312 ! [PLATFORM=ia32&(PROCESSOR=pentium4|PROCESSOR=core)] CONFIG_FENCES_P4 (y)
315 ! [PLATFORM=amd64] CONFIG_FENCES_P4 (y)
318 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
320 % Hierarchical page tables support
321 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
323 % Page hash table support
324 ! [PLATFORM=ia64|PLATFORM=mips64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
326 % Software integer division support
327 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
330 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
333 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
335 % OpenFirmware tree support
336 ! [PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_OFW_TREE (y)
338 % OpenFirmware PCI bus support
339 ! [PLATFORM=sparc64] CONFIG_OFW_PCI (y)
341 % Multiboot standard support
342 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_MULTIBOOT (y)
345 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64] CONFIG_FPU (y)
348 ! [PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FPU (y)
351 ## Kernel features options
354 ! [(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)
359 % Deadlock detection support for spinlocks
360 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
362 % Lazy FPU context switching
363 ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
366 ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
369 ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
371 % IO SAPIC on default address support
372 ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
374 % Virtually indexed D-cache support
375 ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
378 ! [PROCESSOR=sun4v&CONFIG_SMP=y] CONFIG_SIMICS_SMP_HACK (n/y)
380 % Support for userspace debuggers
381 ! CONFIG_UDEBUG (y/n)
383 % Kernel console support
384 ! CONFIG_KCONSOLE (y/n)
386 % Kernel symbol information
387 ! CONFIG_SYMTAB (y/n)
389 % Detailed kernel logging
392 % Kernel function tracing
395 % Compile kernel tests
398 % Use link-time optimization
399 ! [COMPILER=gcc_cross|COMPILER=gcc_native] CONFIG_LTO (n/y)
405 @ "generic" Keyboard or serial line
406 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_HID_IN (choice)
409 @ "generic" Keyboard or serial line
410 @ "none" No input device
411 ! [PLATFORM=ia32|(PLATFORM=arm32&MACHINE=testarm)|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_HID_IN (choice)
414 @ "generic" Keyboard or serial line
415 @ "keyboard" Keyboard
416 @ "serial" Serial line
417 @ "none" No input device
418 ! [PLATFORM=ia64&MACHINE=i460GX] CONFIG_HID_IN (choice)
420 % Output device class
421 @ "generic" Monitor or serial line
422 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp|MACHINE=beagleboardxm|MACHINE=beaglebone)] CONFIG_HID_OUT (choice)
424 % Output device class
425 @ "generic" Monitor or serial line
426 @ "none" No output device
427 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)] CONFIG_HID_OUT (choice)
429 % Output device class
430 @ "generic" Monitor or serial line
432 @ "serial" Serial line
433 @ "none" No output device
434 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] CONFIG_HID_OUT (choice)
436 % Output device class
437 @ "generic" Monitor or serial line
439 @ "serial" Serial line
440 @ "none" No output device
441 ! [PLATFORM=arm32&MACHINE=testarm] CONFIG_HID_OUT (choice)
443 % PC keyboard support
444 ! [CONFIG_HID_IN=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_PC_KBD (y/n)
446 % PC keyboard support
447 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_PC_KBD (y/n)
449 % PC keyboard support
450 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PC_KBD (y/n)
452 % Support for msim/GXemul keyboard
453 ! [CONFIG_HID_IN=generic&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_KBD (y/n)
455 % Support for msim/GXemul printer
456 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_PRN (y/n)
458 % Support for GXemul keyboard
459 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=testarm] CONFIG_ARM_KBD (y/n)
461 % Support for GXemul printer
462 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=testarm] CONFIG_ARM_PRN (y/n)
464 % Support for VIA CUDA controller
465 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n)
467 % Support for NS16550 controller
468 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic] CONFIG_NS16550 (y/n)
470 % Support for NS16550 controller
471 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n)
473 % Support for ARM926 on-chip UART
474 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_ARM926_UART (y/n)
476 % Support for Samsung S3C24XX on-chip UART
477 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n)
479 % Support for Samsung S3C24XX on-chip interrupt controller
480 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y)
482 % Support for TI AM335x on-chip UART
483 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_UART (y/n)
485 % Support for TI AM335x timers support
486 ! [PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_TIMERS (y)
488 % Support for TI AMDM37x on-chip UART
489 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beagleboardxm] CONFIG_AMDM37X_UART (y/n)
491 % Support for i8042 controller
492 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
494 % Support for pl050 controller
495 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PL050 (y)
497 % Sun keyboard support
498 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic&CONFIG_NS16550=y] CONFIG_SUN_KBD (y)
500 % Macintosh ADB keyboard support
501 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ppc32&(CONFIG_VIA_CUDA=y)] CONFIG_MAC_KBD (y)
503 % Dummy serial line input
504 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y)
506 % Dummy serial line output
507 ! [CONFIG_MIPS_PRN=y|CONFIG_ARM_PRN=y] CONFIG_DSRLNOUT (y)
509 % Serial line input module
510 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_UART=y)|(PLATFORM=arm32&MACHINE=beaglebone&CONFIG_AM335X_UART=y)|(PLATFORM=arm32&MACHINE=beagleboardxm&CONFIG_AMDM37X_UART=y)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y)
513 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n)
516 ! [CONFIG_HID_OUT=generic&PLATFORM=ia64&MACHINE=i460GX] CONFIG_EGA (y/n)
518 % Framebuffer support
519 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
521 % Framebuffer support
522 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FB (y/n)
524 % Framebuffer support
525 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n)
527 % Framebuffer support
528 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=sparc64&MACHINE=generic] CONFIG_FB (y/n)
530 % Default framebuffer mode
546 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_MODE (choice)
548 % Default framebuffer depth
552 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
554 % Start AP processors by the loader
555 ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
557 % Dynamic linking support
558 ! [PLATFORM=ia32] CONFIG_RTLD (n/y)
559 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n)
561 % Build shared libraries
562 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y)
563 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n)
565 % Link against shared libraries
566 ! [CONFIG_BUILD_SHARED_LIBS=y] CONFIG_USE_SHARED_LIBS (n/y)
567 ! [CONFIG_BUILD_SHARED_LIBS=n] CONFIG_USE_SHARED_LIBS (n)
569 % Launch (devman) test drivers
570 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y)
572 % Load disk drivers on startup
573 ! CONFIG_START_BD (n/y)
575 % Mount /data on startup
576 ! [CONFIG_START_BD=y] CONFIG_MOUNT_DATA (n/y)
579 ! CONFIG_WRITE_CORE_FILES (n/y)
581 % Include development files (headers, libraries)
582 ! CONFIG_DEVEL_FILES (n/y)
585 ! CONFIG_STRIP_BINARIES (n/y)
588 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
590 % Barebone build with essential binaries only
591 ! CONFIG_BAREBONE (n/y)
596 % Build binutils binaries
597 ! CONFIG_BINUTILS (n/y)
602 % Line debugging information
603 ! [CONFIG_STRIP_BINARIES!=y] CONFIG_LINE_DEBUG (n/y)
607 % USB verbose messages
608 ! CONFIG_USB_VERBOSE (n/y)
610 % Start virtual USB host controller
611 ! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
613 % OHCI root hub port power switching
614 @ "no" All root hub ports are always powered.
615 @ "ganged" Root hub ports are all powered or all off.
616 @ "per_port" Powered status of every root hub port is independent.
617 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32] OHCI_POWER_SWITCH (choice)
619 % GRUB boot loader architecture
621 @ "efi" GRUB for UEFI
622 ! [PLATFORM=ia32|PLATFORM=amd64] GRUB_ARCH (choice)
625 @ "2" NetBSD stage 2 boot loader
626 ! [PLATFORM=arm32&MACHINE=beagleboardxm] UIMAGE_OS (choice)
630 ! [PLATFORM=arm32&MACHINE!=beagleboardxm] UIMAGE_OS (choice)