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 @ "integratorcp" Integratorcp
66 @ "beagleboardxm" BeogleBoard-xM
67 @ "beaglebone" BeogleBone
68 ! [PLATFORM=arm32] MACHINE (choice)
71 @ "pentium4" Pentium 4
72 @ "pentium3" Pentium 3
73 @ "core" Core Solo/Duo
74 @ "athlon_xp" Athlon XP
75 @ "athlon_mp" Athlon MP
77 ! [PLATFORM=ia32] PROCESSOR (choice)
81 ! [PLATFORM=amd64] PROCESSOR (choice)
84 @ "us" UltraSPARC I-II subarchitecture
85 @ "us3" UltraSPARC III-IV subarchitecture
86 @ "sun4v" Niagara (sun4v)
87 ! [PLATFORM=sparc64&MACHINE=generic] PROCESSOR (choice)
91 ! [PLATFORM=arm32&(MACHINE=gta02)] PROCESSOR (choice)
95 ! [PLATFORM=arm32&MACHINE=integratorcp] PROCESSOR (choice)
99 ! [PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] PROCESSOR (choice)
102 @ "tmpfs" TMPFS image
104 @ "ext4fs" ext4 image
108 ## Mapping between platform and kernel architecture
110 % Kernel architecture
112 ! [PLATFORM=abs32le] KARCH (choice)
114 % Kernel architecture
116 ! [PLATFORM=amd64] KARCH (choice)
118 % Kernel architecture
120 ! [PLATFORM=arm32] KARCH (choice)
122 % Kernel architecture
124 ! [PLATFORM=ia32] KARCH (choice)
126 % Kernel architecture
128 ! [PLATFORM=ia32xen] KARCH (choice)
130 % Kernel architecture
132 ! [PLATFORM=ia64] KARCH (choice)
134 % Kernel architecture
136 ! [PLATFORM=mips32] KARCH (choice)
138 % Kernel architecture
140 ! [PLATFORM=mips64] KARCH (choice)
142 % Kernel architecture
144 ! [PLATFORM=ppc32] KARCH (choice)
146 % Kernel architecture
148 ! [PLATFORM=ppc64] KARCH (choice)
150 % Kernel architecture
152 ! [PLATFORM=sparc64] KARCH (choice)
155 ## Mapping between platform and user space architecture
157 % User space architecture
159 ! [PLATFORM=abs32le] UARCH (choice)
161 % User space architecture
163 ! [PLATFORM=amd64] UARCH (choice)
165 % User space architecture
167 ! [PLATFORM=arm32] UARCH (choice)
169 % User space architecture
171 ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
173 % User space architecture
175 ! [PLATFORM=ia64] UARCH (choice)
177 % User space architecture
179 ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=lgxemul)] UARCH (choice)
181 % User space architecture
183 ! [PLATFORM=mips32&MACHINE=bgxemul] UARCH (choice)
185 % User space architecture
187 ! [PLATFORM=mips64] UARCH (choice)
189 % User space architecture
191 ! [PLATFORM=ppc32] UARCH (choice)
193 % User space architecture
195 ! [PLATFORM=ppc64] UARCH (choice)
197 % User space architecture
199 ! [PLATFORM=sparc64] UARCH (choice)
202 ## Mapping between platform and boot architecture
206 ! [PLATFORM=abs32le] BARCH (choice)
210 ! [PLATFORM=amd64] BARCH (choice)
214 ! [PLATFORM=arm32] BARCH (choice)
218 ! [PLATFORM=ia32] BARCH (choice)
222 ! [PLATFORM=ia32xen] BARCH (choice)
226 ! [PLATFORM=ia64] BARCH (choice)
230 ! [PLATFORM=mips32] BARCH (choice)
234 ! [PLATFORM=mips64] BARCH (choice)
238 ! [PLATFORM=ppc32] BARCH (choice)
242 ! [PLATFORM=ppc64] BARCH (choice)
246 ! [PLATFORM=sparc64] BARCH (choice)
249 ## Mapping between platform and image format
253 ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
257 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
261 ! [PLATFORM=mips64] IMAGE (choice)
267 @ "gcc_cross" GNU C Compiler (cross-compiler)
268 @ "gcc_native" GNU C Compiler (native)
269 @ "icc" Intel C Compiler
271 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
274 @ "gcc_cross" GNU C Compiler (cross-compiler)
275 @ "gcc_native" GNU C Compiler (native)
276 @ "icc" Intel C Compiler
277 ! [PLATFORM=ia64] COMPILER (choice)
280 @ "gcc_cross" GNU C Compiler (cross-compiler)
281 @ "gcc_native" GNU C Compiler (native)
282 ! [PLATFORM=sparc64] COMPILER (choice)
285 @ "gcc_cross" GNU C Compiler (cross-compiler)
286 @ "gcc_native" GNU C Compiler (native)
287 ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice)
290 @ "gcc_cross" GNU C Compiler (cross-compiler)
291 @ "gcc_native" GNU C Compiler (native)
293 ! [PLATFORM=abs32le] COMPILER (choice)
296 ## Cross-compiler target for abstract architecture
298 % Cross-compiler target
301 @ "mips32" MIPS 32-bit
302 ! [PLATFORM=abs32le&COMPILER=gcc_cross] CROSS_TARGET (choice)
305 ## Kernel configuration
308 ! [PLATFORM=ia32&(PROCESSOR=athlon_xp|PROCESSOR=athlon_mp|PROCESSOR=pentium3)] CONFIG_FENCES_P3 (y)
311 ! [PLATFORM=ia32&(PROCESSOR=pentium4|PROCESSOR=core)] CONFIG_FENCES_P4 (y)
314 ! [PLATFORM=amd64] CONFIG_FENCES_P4 (y)
317 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
319 % Hierarchical page tables support
320 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
322 % Page hash table support
323 ! [PLATFORM=ia64|PLATFORM=mips64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
325 % Software integer division support
326 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
329 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
332 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
334 % OpenFirmware tree support
335 ! [PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_OFW_TREE (y)
337 % OpenFirmware PCI bus support
338 ! [PLATFORM=sparc64] CONFIG_OFW_PCI (y)
340 % Multiboot standard support
341 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_MULTIBOOT (y)
344 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64] CONFIG_FPU (y)
347 ! [PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FPU (y)
349 ## armv7 made fpu hardware compulsory
351 ! [PLATFORM=arm32&PROCESSOR=armv7_a] CONFIG_FPU (y)
354 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_FPU (y)
357 ## Kernel features options
360 ! [(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)
365 % Deadlock detection support for spinlocks
366 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
368 % Lazy FPU context switching
369 ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
372 ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
375 ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
377 % IO SAPIC on default address support
378 ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
380 % Virtually indexed D-cache support
381 ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
384 ! [PROCESSOR=sun4v&CONFIG_SMP=y] CONFIG_SIMICS_SMP_HACK (n/y)
386 % Support for userspace debuggers
387 ! CONFIG_UDEBUG (y/n)
389 % Kernel console support
390 ! CONFIG_KCONSOLE (y/n)
392 % Kernel symbol information
393 ! CONFIG_SYMTAB (y/n)
395 % Detailed kernel logging
398 % Kernel function tracing
401 % Compile kernel tests
404 % Use link-time optimization
405 ! [COMPILER=gcc_cross|COMPILER=gcc_native] CONFIG_LTO (n/y)
411 @ "generic" Keyboard or serial line
412 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_HID_IN (choice)
415 @ "generic" Keyboard or serial line
416 @ "none" No input device
417 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_HID_IN (choice)
420 @ "generic" Keyboard or serial line
421 @ "keyboard" Keyboard
422 @ "serial" Serial line
423 @ "none" No input device
424 ! [PLATFORM=ia64&MACHINE=i460GX] CONFIG_HID_IN (choice)
426 % Output device class
427 @ "generic" Monitor or serial line
428 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp|MACHINE=beagleboardxm|MACHINE=beaglebone)] CONFIG_HID_OUT (choice)
430 % Output device class
431 @ "generic" Monitor or serial line
432 @ "none" No output device
433 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)] CONFIG_HID_OUT (choice)
435 % Output device class
436 @ "generic" Monitor or serial line
438 @ "serial" Serial line
439 @ "none" No output device
440 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] CONFIG_HID_OUT (choice)
442 % PC keyboard support
443 ! [CONFIG_HID_IN=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_PC_KBD (y/n)
445 % PC keyboard support
446 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_PC_KBD (y/n)
448 % PC keyboard support
449 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PC_KBD (y/n)
451 % Support for msim/GXemul keyboard
452 ! [CONFIG_HID_IN=generic&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_KBD (y/n)
454 % Support for msim/GXemul printer
455 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_PRN (y/n)
457 % Support for VIA CUDA controller
458 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n)
460 % Support for NS16550 controller
461 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic] CONFIG_NS16550 (y/n)
463 % Support for NS16550 controller
464 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n)
466 % Support for ARM926 on-chip UART
467 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_ARM926_UART (y/n)
469 % Support for Samsung S3C24XX on-chip UART
470 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n)
472 % Support for Samsung S3C24XX on-chip interrupt controller
473 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y)
475 % Support for TI AM335x on-chip UART
476 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_UART (y/n)
478 % Support for TI AM335x timers support
479 ! [PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_TIMERS (y)
481 % Support for TI AMDM37x on-chip UART
482 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beagleboardxm] CONFIG_AMDM37X_UART (y/n)
484 % Support for i8042 controller
485 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
487 % Support for pl050 controller
488 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PL050 (y)
490 % Sun keyboard support
491 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic&CONFIG_NS16550=y] CONFIG_SUN_KBD (y)
493 % Macintosh ADB keyboard support
494 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ppc32&(CONFIG_VIA_CUDA=y)] CONFIG_MAC_KBD (y)
496 % Dummy serial line input
497 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y)
499 % Dummy serial line output
500 ! [CONFIG_MIPS_PRN=y|CONFIG_ARM_PRN=y] CONFIG_DSRLNOUT (y)
502 % Serial line input module
503 ! [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)
506 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n)
509 ! [CONFIG_HID_OUT=generic&PLATFORM=ia64&MACHINE=i460GX] CONFIG_EGA (y/n)
511 % Framebuffer support
512 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
514 % Framebuffer support
515 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FB (y/n)
517 % Framebuffer support
518 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n)
520 % Framebuffer support
521 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=sparc64&MACHINE=generic] CONFIG_FB (y/n)
523 % Default framebuffer mode
539 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_MODE (choice)
541 % Default framebuffer depth
545 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
547 % Start AP processors by the loader
548 ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
550 % Dynamic linking support
551 ! [PLATFORM=ia32] CONFIG_RTLD (n/y)
552 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n)
554 % Build shared libraries
555 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y)
556 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n)
558 % Link against shared libraries
559 ! [CONFIG_BUILD_SHARED_LIBS=y] CONFIG_USE_SHARED_LIBS (n/y)
560 ! [CONFIG_BUILD_SHARED_LIBS=n] CONFIG_USE_SHARED_LIBS (n)
562 % Launch (devman) test drivers
563 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y)
565 % Load disk drivers on startup
566 ! CONFIG_START_BD (n/y)
568 % Mount /data on startup
569 ! [CONFIG_START_BD=y] CONFIG_MOUNT_DATA (n/y)
572 ! CONFIG_WRITE_CORE_FILES (n/y)
574 % Include development files (headers, libraries)
575 ! CONFIG_DEVEL_FILES (n/y)
578 ! CONFIG_STRIP_BINARIES (n/y)
581 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
583 % Barebone build with essential binaries only
584 ! CONFIG_BAREBONE (n/y)
589 % Build binutils binaries
590 ! CONFIG_BINUTILS (n/y)
595 % Line debugging information
596 ! [CONFIG_STRIP_BINARIES!=y] CONFIG_LINE_DEBUG (n/y)
600 % Start virtual USB host controller
601 ! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
603 % OHCI root hub port power switching
604 @ "no" All root hub ports are always powered.
605 @ "ganged" Root hub ports are all powered or all off.
606 @ "per_port" Powered status of every root hub port is independent.
607 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32] OHCI_POWER_SWITCH (choice)
609 % GRUB boot loader architecture
611 @ "efi" GRUB for UEFI
612 ! [PLATFORM=ia32|PLATFORM=amd64] GRUB_ARCH (choice)
615 @ "2" NetBSD stage 2 boot loader
616 ! [PLATFORM=arm32&MACHINE=beagleboardxm] UIMAGE_OS (choice)
620 ! [PLATFORM=arm32&MACHINE!=beagleboardxm] UIMAGE_OS (choice)