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 ! [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)
90 ! [PLATFORM=arm32&(MACHINE=gta02)] PROCESSOR (choice)
94 ! [PLATFORM=arm32&MACHINE=integratorcp] PROCESSOR (choice)
98 ! [PLATFORM=arm32&MACHINE=beagleboardxm] PROCESSOR (choice)
101 @ "tmpfs" TMPFS image
103 @ "ext4fs" ext4 image
107 ## Mapping between platform and kernel architecture
109 % Kernel architecture
111 ! [PLATFORM=abs32le] KARCH (choice)
113 % Kernel architecture
115 ! [PLATFORM=amd64] KARCH (choice)
117 % Kernel architecture
119 ! [PLATFORM=arm32] KARCH (choice)
121 % Kernel architecture
123 ! [PLATFORM=ia32] KARCH (choice)
125 % Kernel architecture
127 ! [PLATFORM=ia32xen] KARCH (choice)
129 % Kernel architecture
131 ! [PLATFORM=ia64] KARCH (choice)
133 % Kernel architecture
135 ! [PLATFORM=mips32] KARCH (choice)
137 % Kernel architecture
139 ! [PLATFORM=mips64] KARCH (choice)
141 % Kernel architecture
143 ! [PLATFORM=ppc32] KARCH (choice)
145 % Kernel architecture
147 ! [PLATFORM=ppc64] KARCH (choice)
149 % Kernel architecture
151 ! [PLATFORM=sparc64] KARCH (choice)
154 ## Mapping between platform and user space architecture
156 % User space architecture
158 ! [PLATFORM=abs32le] UARCH (choice)
160 % User space architecture
162 ! [PLATFORM=amd64] UARCH (choice)
164 % User space architecture
166 ! [PLATFORM=arm32] UARCH (choice)
168 % User space architecture
170 ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
172 % User space architecture
174 ! [PLATFORM=ia64] UARCH (choice)
176 % User space architecture
178 ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=lgxemul)] UARCH (choice)
180 % User space architecture
182 ! [PLATFORM=mips32&MACHINE=bgxemul] UARCH (choice)
184 % User space architecture
186 ! [PLATFORM=mips64] UARCH (choice)
188 % User space architecture
190 ! [PLATFORM=ppc32] UARCH (choice)
192 % User space architecture
194 ! [PLATFORM=ppc64] UARCH (choice)
196 % User space architecture
198 ! [PLATFORM=sparc64] UARCH (choice)
201 ## Mapping between platform and boot architecture
205 ! [PLATFORM=abs32le] BARCH (choice)
209 ! [PLATFORM=amd64] BARCH (choice)
213 ! [PLATFORM=arm32] BARCH (choice)
217 ! [PLATFORM=ia32] BARCH (choice)
221 ! [PLATFORM=ia32xen] BARCH (choice)
225 ! [PLATFORM=ia64] BARCH (choice)
229 ! [PLATFORM=mips32] BARCH (choice)
233 ! [PLATFORM=mips64] BARCH (choice)
237 ! [PLATFORM=ppc32] BARCH (choice)
241 ! [PLATFORM=ppc64] BARCH (choice)
245 ! [PLATFORM=sparc64] BARCH (choice)
248 ## Mapping between platform and image format
252 ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
256 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
260 ! [PLATFORM=mips64] IMAGE (choice)
266 @ "gcc_cross" GNU C Compiler (cross-compiler)
267 @ "gcc_native" GNU C Compiler (native)
268 @ "icc" Intel C Compiler
270 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
273 @ "gcc_cross" GNU C Compiler (cross-compiler)
274 @ "gcc_native" GNU C Compiler (native)
275 @ "icc" Intel C Compiler
276 ! [PLATFORM=ia64] COMPILER (choice)
279 @ "gcc_cross" GNU C Compiler (cross-compiler)
280 @ "gcc_native" GNU C Compiler (native)
281 ! [PLATFORM=sparc64] COMPILER (choice)
284 @ "gcc_cross" GNU C Compiler (cross-compiler)
285 @ "gcc_native" GNU C Compiler (native)
286 ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice)
289 @ "gcc_cross" GNU C Compiler (cross-compiler)
290 @ "gcc_native" GNU C Compiler (native)
292 ! [PLATFORM=abs32le] COMPILER (choice)
295 ## Cross-compiler target for abstract architecture
297 % Cross-compiler target
300 @ "mips32" MIPS 32-bit
301 ! [PLATFORM=abs32le&COMPILER=gcc_cross] CROSS_TARGET (choice)
304 ## Kernel configuration
307 ! [PLATFORM=ia32&(PROCESSOR=athlon_xp|PROCESSOR=athlon_mp|PROCESSOR=pentium3)] CONFIG_FENCES_P3 (y)
310 ! [PLATFORM=ia32&(PROCESSOR=pentium4|PROCESSOR=core)] CONFIG_FENCES_P4 (y)
313 ! [PLATFORM=amd64] CONFIG_FENCES_P4 (y)
316 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
318 % Hierarchical page tables support
319 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
321 % Page hash table support
322 ! [PLATFORM=ia64|PLATFORM=mips64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
324 % Software integer division support
325 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
328 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
331 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
333 % OpenFirmware tree support
334 ! [PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_OFW_TREE (y)
336 % OpenFirmware PCI bus support
337 ! [PLATFORM=sparc64] CONFIG_OFW_PCI (y)
339 % Multiboot standard support
340 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_MULTIBOOT (y)
343 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64] CONFIG_FPU (y)
346 ! [PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FPU (y)
348 ## armv7 made fpu hardware compulsory
350 ! [PLATFORM=arm32&PROCESSOR=armv7_a] CONFIG_FPU (y)
353 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_FPU (y)
356 ## Kernel features options
359 ! [(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)
364 % Deadlock detection support for spinlocks
365 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
367 % Lazy FPU context switching
368 ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
371 ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
374 ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
376 % IO SAPIC on default address support
377 ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
379 % Virtually indexed D-cache support
380 ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
383 ! [PROCESSOR=sun4v&CONFIG_SMP=y] CONFIG_SIMICS_SMP_HACK (n/y)
385 % Support for userspace debuggers
386 ! CONFIG_UDEBUG (y/n)
388 % Kernel console support
389 ! CONFIG_KCONSOLE (y/n)
391 % Kernel symbol information
392 ! CONFIG_SYMTAB (y/n)
394 % Detailed kernel logging
397 % Kernel function tracing
400 % Compile kernel tests
403 % Use link-time optimization
404 ! [COMPILER=gcc_cross|COMPILER=gcc_native] CONFIG_LTO (n/y)
410 @ "generic" Keyboard or serial line
411 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_HID_IN (choice)
414 @ "generic" Keyboard or serial line
415 @ "none" No input device
416 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_HID_IN (choice)
419 @ "generic" Keyboard or serial line
420 @ "keyboard" Keyboard
421 @ "serial" Serial line
422 @ "none" No input device
423 ! [PLATFORM=ia64&MACHINE=i460GX] CONFIG_HID_IN (choice)
425 % Output device class
426 @ "generic" Monitor or serial line
427 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp|MACHINE=beagleboardxm)] CONFIG_HID_OUT (choice)
429 % Output device class
430 @ "generic" Monitor or serial line
431 @ "none" No output device
432 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)] CONFIG_HID_OUT (choice)
434 % Output device class
435 @ "generic" Monitor or serial line
437 @ "serial" Serial line
438 @ "none" No output device
439 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] CONFIG_HID_OUT (choice)
441 % PC keyboard support
442 ! [CONFIG_HID_IN=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_PC_KBD (y/n)
444 % PC keyboard support
445 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_PC_KBD (y/n)
447 % PC keyboard support
448 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PC_KBD (y/n)
450 % Support for msim/GXemul keyboard
451 ! [CONFIG_HID_IN=generic&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_KBD (y/n)
453 % Support for msim/GXemul printer
454 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_PRN (y/n)
456 % Support for VIA CUDA controller
457 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n)
459 % Support for NS16550 controller
460 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic] CONFIG_NS16550 (y/n)
462 % Support for NS16550 controller
463 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n)
465 % Support for ARM926 on-chip UART
466 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_ARM926_UART (y/n)
468 % Support for Samsung S3C24XX on-chip UART
469 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n)
471 % Support for Samsung S3C24XX on-chip interrupt controller
472 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y)
474 % Support for TI AMDM37X on-chip UART
475 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beagleboardxm] CONFIG_AMDM37X_UART (y/n)
477 % Support for i8042 controller
478 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
480 % Support for pl050 controller
481 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PL050 (y)
483 % Sun keyboard support
484 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic&CONFIG_NS16550=y] CONFIG_SUN_KBD (y)
486 % Macintosh ADB keyboard support
487 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ppc32&(CONFIG_VIA_CUDA=y)] CONFIG_MAC_KBD (y)
489 % Dummy serial line input
490 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y)
492 % Dummy serial line output
493 ! [CONFIG_MIPS_PRN=y|CONFIG_ARM_PRN=y] CONFIG_DSRLNOUT (y)
495 % Serial line input module
496 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_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)
499 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n)
502 ! [CONFIG_HID_OUT=generic&PLATFORM=ia64&MACHINE=i460GX] CONFIG_EGA (y/n)
504 % Framebuffer support
505 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
507 % Framebuffer support
508 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FB (y/n)
510 % Framebuffer support
511 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n)
513 % Framebuffer support
514 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=sparc64&MACHINE=generic] CONFIG_FB (y/n)
516 % Default framebuffer mode
532 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_MODE (choice)
534 % Default framebuffer depth
538 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
540 % Start AP processors by the loader
541 ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
543 % Dynamic linking support
544 ! [PLATFORM=ia32] CONFIG_RTLD (n/y)
545 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n)
547 % Build shared libraries
548 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y)
549 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n)
551 % Link against shared libraries
552 ! [CONFIG_BUILD_SHARED_LIBS=y] CONFIG_USE_SHARED_LIBS (n/y)
553 ! [CONFIG_BUILD_SHARED_LIBS=n] CONFIG_USE_SHARED_LIBS (n)
555 % Launch (devman) test drivers
556 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y)
558 % Load disk drivers on startup
559 ! CONFIG_START_BD (n/y)
561 % Mount /data on startup
562 ! [CONFIG_START_BD=y] CONFIG_MOUNT_DATA (n/y)
565 ! CONFIG_WRITE_CORE_FILES (n/y)
567 % Include development files (headers, libraries)
568 ! CONFIG_DEVEL_FILES (n/y)
571 ! CONFIG_STRIP_BINARIES (n/y)
574 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
576 % Barebone build with essential binaries only
577 ! CONFIG_BAREBONE (n/y)
582 % Build binutils binaries
583 ! CONFIG_BINUTILS (n/y)
588 % Line debugging information
589 ! [CONFIG_STRIP_BINARIES!=y] CONFIG_LINE_DEBUG (n/y)
593 % Start virtual USB host controller
594 ! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
596 % OHCI root hub port power switching
597 @ "no" All root hub ports are always powered.
598 @ "ganged" Root hub ports are all powered or all off.
599 @ "per_port" Powered status of every root hub port is independent.
600 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32] OHCI_POWER_SWITCH (choice)
602 % GRUB boot loader architecture
604 @ "efi" GRUB for UEFI
605 ! [PLATFORM=ia32|PLATFORM=amd64] GRUB_ARCH (choice)
608 @ "2" NetBSD stage 2 boot loader
609 ! [PLATFORM=arm32&MACHINE=beagleboardxm] UIMAGE_OS (choice)
613 ! [PLATFORM=arm32&MACHINE!=beagleboardxm] UIMAGE_OS (choice)