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" BeagleBoard-xM
67 @ "beaglebone" BeagleBone
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)
90 @ "cortex_a8" ARM Cortex A-8
91 ! [PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] PROCESSOR (choice)
95 ! [PLATFORM=arm32&MACHINE=gta02] PROCESSOR (choice)
98 @ "arm926ej_s" ARM926EJ-S
99 ! [PLATFORM=arm32&MACHINE=integratorcp] PROCESSOR (choice)
102 # Add more ARMv4 CPUs
105 ! [PLATFORM=arm32&(PROCESSOR=arm920t)] PROCESSOR_ARCH (choice)
107 # Add more ARMv5 CPUs
110 ! [PLATFORM=arm32&(PROCESSOR=arm926ej_s)] PROCESSOR_ARCH (choice)
112 # Add more ARMv7-A CPUs
115 ! [PLATFORM=arm32&(PROCESSOR=cortex_a8)] PROCESSOR_ARCH (choice)
118 @ "tmpfs" TMPFS image
120 @ "ext4fs" ext4 image
124 ## Mapping between platform and kernel architecture
126 % Kernel architecture
128 ! [PLATFORM=abs32le] KARCH (choice)
130 % Kernel architecture
132 ! [PLATFORM=amd64] KARCH (choice)
134 % Kernel architecture
136 ! [PLATFORM=arm32] KARCH (choice)
138 % Kernel architecture
140 ! [PLATFORM=ia32] KARCH (choice)
142 % Kernel architecture
144 ! [PLATFORM=ia32xen] KARCH (choice)
146 % Kernel architecture
148 ! [PLATFORM=ia64] KARCH (choice)
150 % Kernel architecture
152 ! [PLATFORM=mips32] KARCH (choice)
154 % Kernel architecture
156 ! [PLATFORM=mips64] KARCH (choice)
158 % Kernel architecture
160 ! [PLATFORM=ppc32] KARCH (choice)
162 % Kernel architecture
164 ! [PLATFORM=ppc64] KARCH (choice)
166 % Kernel architecture
168 ! [PLATFORM=sparc64] KARCH (choice)
171 ## Mapping between platform and user space architecture
173 % User space architecture
175 ! [PLATFORM=abs32le] UARCH (choice)
177 % User space architecture
179 ! [PLATFORM=amd64] UARCH (choice)
181 % User space architecture
183 ! [PLATFORM=arm32] UARCH (choice)
185 % User space architecture
187 ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
189 % User space architecture
191 ! [PLATFORM=ia64] UARCH (choice)
193 % User space architecture
195 ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=lgxemul)] UARCH (choice)
197 % User space architecture
199 ! [PLATFORM=mips32&MACHINE=bgxemul] UARCH (choice)
201 % User space architecture
203 ! [PLATFORM=mips64] UARCH (choice)
205 % User space architecture
207 ! [PLATFORM=ppc32] UARCH (choice)
209 % User space architecture
211 ! [PLATFORM=ppc64] UARCH (choice)
213 % User space architecture
215 ! [PLATFORM=sparc64] UARCH (choice)
218 ## Mapping between platform and boot architecture
222 ! [PLATFORM=abs32le] BARCH (choice)
226 ! [PLATFORM=amd64] BARCH (choice)
230 ! [PLATFORM=arm32] BARCH (choice)
234 ! [PLATFORM=ia32] BARCH (choice)
238 ! [PLATFORM=ia32xen] BARCH (choice)
242 ! [PLATFORM=ia64] BARCH (choice)
246 ! [PLATFORM=mips32] BARCH (choice)
250 ! [PLATFORM=mips64] BARCH (choice)
254 ! [PLATFORM=ppc32] BARCH (choice)
258 ! [PLATFORM=ppc64] BARCH (choice)
262 ! [PLATFORM=sparc64] BARCH (choice)
265 ## Mapping between platform and image format
269 ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
273 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
277 ! [PLATFORM=mips64] IMAGE (choice)
283 @ "gcc_cross" GNU C Compiler (cross-compiler)
284 @ "gcc_native" GNU C Compiler (native)
285 @ "icc" Intel C Compiler
287 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
290 @ "gcc_cross" GNU C Compiler (cross-compiler)
291 @ "gcc_native" GNU C Compiler (native)
292 @ "icc" Intel C Compiler
293 ! [PLATFORM=ia64] COMPILER (choice)
296 @ "gcc_cross" GNU C Compiler (cross-compiler)
297 @ "gcc_native" GNU C Compiler (native)
298 ! [PLATFORM=sparc64] COMPILER (choice)
301 @ "gcc_cross" GNU C Compiler (cross-compiler)
302 @ "gcc_native" GNU C Compiler (native)
303 ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice)
306 @ "gcc_cross" GNU C Compiler (cross-compiler)
307 @ "gcc_native" GNU C Compiler (native)
309 ! [PLATFORM=abs32le] COMPILER (choice)
312 ## Cross-compiler target for abstract architecture
314 % Cross-compiler target
317 @ "mips32" MIPS 32-bit
318 ! [PLATFORM=abs32le&COMPILER=gcc_cross] CROSS_TARGET (choice)
321 ## Kernel configuration
324 ! [PLATFORM=ia32&(PROCESSOR=athlon_xp|PROCESSOR=athlon_mp|PROCESSOR=pentium3)] CONFIG_FENCES_P3 (y)
327 ! [PLATFORM=ia32&(PROCESSOR=pentium4|PROCESSOR=core)] CONFIG_FENCES_P4 (y)
330 ! [PLATFORM=amd64] CONFIG_FENCES_P4 (y)
333 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
335 % Hierarchical page tables support
336 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
338 % Page hash table support
339 ! [PLATFORM=ia64|PLATFORM=mips64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
341 % Software integer division support
342 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
345 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
348 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
350 % OpenFirmware tree support
351 ! [PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_OFW_TREE (y)
353 % OpenFirmware PCI bus support
354 ! [PLATFORM=sparc64] CONFIG_OFW_PCI (y)
356 % Multiboot standard support
357 ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_MULTIBOOT (y)
360 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64] CONFIG_FPU (y)
363 ! [PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FPU (y)
365 ## armv7 made fpu hardware compulsory
367 ! [PLATFORM=arm32&PROCESSOR_ARCH=armv7_a] CONFIG_FPU (y)
370 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_FPU (y)
373 ## Kernel features options
376 ! [(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)
381 % Deadlock detection support for spinlocks
382 ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
384 % Lazy FPU context switching
385 ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
388 ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
391 ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
393 % IO SAPIC on default address support
394 ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
396 % Virtually indexed D-cache support
397 ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
400 ! [PROCESSOR=sun4v&CONFIG_SMP=y] CONFIG_SIMICS_SMP_HACK (n/y)
402 % Support for userspace debuggers
403 ! CONFIG_UDEBUG (y/n)
405 % Kernel console support
406 ! CONFIG_KCONSOLE (y/n)
408 % Kernel symbol information
409 ! CONFIG_SYMTAB (y/n)
411 % Detailed kernel logging
414 % Kernel function tracing
417 % Compile kernel tests
420 % Use link-time optimization
421 ! [COMPILER=gcc_cross|COMPILER=gcc_native] CONFIG_LTO (n/y)
427 @ "generic" Keyboard or serial line
428 ! [PLATFORM=arm32&MACHINE=integratorcp] CONFIG_HID_IN (choice)
431 @ "generic" Keyboard or serial line
432 @ "none" No input device
433 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_HID_IN (choice)
436 @ "generic" Keyboard or serial line
437 @ "keyboard" Keyboard
438 @ "serial" Serial line
439 @ "none" No input device
440 ! [PLATFORM=ia64&MACHINE=i460GX] CONFIG_HID_IN (choice)
442 % Output device class
443 @ "generic" Monitor or serial line
444 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp|MACHINE=beagleboardxm|MACHINE=beaglebone)] CONFIG_HID_OUT (choice)
446 % Output device class
447 @ "generic" Monitor or serial line
448 @ "none" No output device
449 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)|(PLATFORM=mips64&MACHINE=msim)] CONFIG_HID_OUT (choice)
451 % Output device class
452 @ "generic" Monitor or serial line
454 @ "serial" Serial line
455 @ "none" No output device
456 ! [PLATFORM=mips32&(MACHINE=bgxemul|MACHINE=lgxemul)] CONFIG_HID_OUT (choice)
458 % PC keyboard support
459 ! [CONFIG_HID_IN=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_PC_KBD (y/n)
461 % PC keyboard support
462 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_PC_KBD (y/n)
464 % PC keyboard support
465 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PC_KBD (y/n)
467 % Support for msim/GXemul keyboard
468 ! [CONFIG_HID_IN=generic&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_KBD (y/n)
470 % Support for msim/GXemul printer
471 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&(PLATFORM=mips32|PLATFORM=mips64)] CONFIG_MIPS_PRN (y/n)
473 % Support for VIA CUDA controller
474 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n)
476 % Support for NS16550 controller
477 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic] CONFIG_NS16550 (y/n)
479 % Support for NS16550 controller
480 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n)
482 % Support for ARM926 on-chip UART
483 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_ARM926_UART (y/n)
485 % Support for Samsung S3C24XX on-chip UART
486 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n)
488 % Support for Samsung S3C24XX on-chip interrupt controller
489 ! [PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_IRQC (y)
491 % Support for TI AM335x on-chip UART
492 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_UART (y/n)
494 % Support for TI AM335x timers support
495 ! [PLATFORM=arm32&MACHINE=beaglebone] CONFIG_AM335X_TIMERS (y)
497 % Support for TI AMDM37x on-chip UART
498 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=beagleboardxm] CONFIG_AMDM37X_UART (y/n)
500 % Support for i8042 controller
501 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
503 % Support for pl050 controller
504 ! [CONFIG_HID_IN=generic&PLATFORM=arm32&MACHINE=integratorcp] CONFIG_PL050 (y)
506 % Sun keyboard support
507 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64&MACHINE=generic&CONFIG_NS16550=y] CONFIG_SUN_KBD (y)
509 % Macintosh ADB keyboard support
510 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=ppc32&(CONFIG_VIA_CUDA=y)] CONFIG_MAC_KBD (y)
512 % Dummy serial line input
513 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y)
515 % Dummy serial line output
516 ! [CONFIG_MIPS_PRN=y|CONFIG_ARM_PRN=y] CONFIG_DSRLNOUT (y)
518 % Serial line input module
519 ! [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)
522 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n)
525 ! [CONFIG_HID_OUT=generic&PLATFORM=ia64&MACHINE=i460GX] CONFIG_EGA (y/n)
527 % Framebuffer support
528 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
530 % Framebuffer support
531 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul)] CONFIG_FB (y/n)
533 % Framebuffer support
534 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n)
536 % Framebuffer support
537 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=sparc64&MACHINE=generic] CONFIG_FB (y/n)
539 % Default framebuffer mode
555 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_MODE (choice)
557 % Default framebuffer depth
561 ! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
563 % Start AP processors by the loader
564 ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
566 % Dynamic linking support
567 ! [PLATFORM=ia32] CONFIG_RTLD (n/y)
568 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n)
570 % Build shared libraries
571 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y)
572 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n)
574 % Link against shared libraries
575 ! [CONFIG_BUILD_SHARED_LIBS=y] CONFIG_USE_SHARED_LIBS (n/y)
576 ! [CONFIG_BUILD_SHARED_LIBS=n] CONFIG_USE_SHARED_LIBS (n)
578 % Launch (devman) test drivers
579 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y)
581 % Load disk drivers on startup
582 ! CONFIG_START_BD (n/y)
584 % Mount /data on startup
585 ! [CONFIG_START_BD=y] CONFIG_MOUNT_DATA (n/y)
588 ! CONFIG_WRITE_CORE_FILES (n/y)
590 % Include development files (headers, libraries)
591 ! CONFIG_DEVEL_FILES (n/y)
594 ! CONFIG_STRIP_BINARIES (n/y)
597 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
599 % Barebone build with essential binaries only
600 ! CONFIG_BAREBONE (n/y)
605 % Build binutils binaries
606 ! CONFIG_BINUTILS (n/y)
611 % Line debugging information
612 ! [CONFIG_STRIP_BINARIES!=y] CONFIG_LINE_DEBUG (n/y)
616 % Start virtual USB host controller
617 ! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
619 % OHCI root hub port power switching
620 @ "no" All root hub ports are always powered.
621 @ "ganged" Root hub ports are all powered or all off.
622 @ "per_port" Powered status of every root hub port is independent.
623 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32] OHCI_POWER_SWITCH (choice)
625 % GRUB boot loader architecture
627 @ "efi" GRUB for UEFI
628 ! [PLATFORM=ia32|PLATFORM=amd64] GRUB_ARCH (choice)
631 @ "2" NetBSD stage 2 boot loader
632 ! [PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] UIMAGE_OS (choice)
636 ! [PLATFORM=arm32&MACHINE!=beagleboardxm&MACHINE!=beaglebone] UIMAGE_OS (choice)