| 1 | #
|
|---|
| 2 | # Copyright (c) 2006 Ondrej Palkovsky
|
|---|
| 3 | # Copyright (c) 2009 Martin Decky
|
|---|
| 4 | # All rights reserved.
|
|---|
| 5 | #
|
|---|
| 6 | # Redistribution and use in source and binary forms, with or without
|
|---|
| 7 | # modification, are permitted provided that the following conditions
|
|---|
| 8 | # are met:
|
|---|
| 9 | #
|
|---|
| 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.
|
|---|
| 17 | #
|
|---|
| 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.
|
|---|
| 28 | #
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | ## General platform options
|
|---|
| 32 |
|
|---|
| 33 | % Platform
|
|---|
| 34 | @ "amd64" AMD64/Intel EM64T (PC)
|
|---|
| 35 | @ "arm32" ARM 32-bit
|
|---|
| 36 | @ "ia32" Intel IA-32 (PC)
|
|---|
| 37 | @ "ia64" Intel IA-64
|
|---|
| 38 | @ "mips32" MIPS 32-bit
|
|---|
| 39 | @ "ppc32" PowerPC 32-bit (iMac G4)
|
|---|
| 40 | @ "sparc64" Sun UltraSPARC 64-bit
|
|---|
| 41 | ! PLATFORM (choice)
|
|---|
| 42 |
|
|---|
| 43 | % Machine type
|
|---|
| 44 | @ "msim" MSIM
|
|---|
| 45 | @ "simics" Simics
|
|---|
| 46 | @ "bgxemul" GXEmul big endian
|
|---|
| 47 | @ "lgxemul" GXEmul little endian
|
|---|
| 48 | ! [PLATFORM=mips32] MACHINE (choice)
|
|---|
| 49 |
|
|---|
| 50 | % Machine type
|
|---|
| 51 | @ "i460GX" i460GX chipset machine
|
|---|
| 52 | @ "ski" Ski ia64 simulator
|
|---|
| 53 | ! [PLATFORM=ia64] MACHINE (choice)
|
|---|
| 54 |
|
|---|
| 55 | % CPU type
|
|---|
| 56 | @ "pentium4" Pentium 4
|
|---|
| 57 | @ "pentium3" Pentium 3
|
|---|
| 58 | @ "core" Core Solo/Duo
|
|---|
| 59 | @ "athlon-xp" Athlon XP
|
|---|
| 60 | @ "athlon-mp" Athlon MP
|
|---|
| 61 | ! [PLATFORM=ia32] MACHINE (choice)
|
|---|
| 62 |
|
|---|
| 63 | % CPU type
|
|---|
| 64 | @ "opteron" Opteron
|
|---|
| 65 | ! [PLATFORM=amd64] MACHINE (choice)
|
|---|
| 66 |
|
|---|
| 67 | % CPU type
|
|---|
| 68 | @ "us" UltraSPARC I-II subarchitecture
|
|---|
| 69 | @ "us3" UltraSPARC III-IV subarchitecture
|
|---|
| 70 | ! [PLATFORM=sparc64] MACHINE (choice)
|
|---|
| 71 |
|
|---|
| 72 | % Ramdisk format
|
|---|
| 73 | @ "tmpfs" TMPFS image
|
|---|
| 74 | @ "fat" FAT16 image
|
|---|
| 75 | ! RDFMT (choice)
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 | ## Mapping between platform and kernel architecture
|
|---|
| 79 |
|
|---|
| 80 | % Kernel architecture
|
|---|
| 81 | @ "amd64"
|
|---|
| 82 | ! [PLATFORM=amd64] KARCH (choice)
|
|---|
| 83 |
|
|---|
| 84 | % Kernel architecture
|
|---|
| 85 | @ "arm32"
|
|---|
| 86 | ! [PLATFORM=arm32] KARCH (choice)
|
|---|
| 87 |
|
|---|
| 88 | % Kernel architecture
|
|---|
| 89 | @ "ia32"
|
|---|
| 90 | ! [PLATFORM=ia32] KARCH (choice)
|
|---|
| 91 |
|
|---|
| 92 | % Kernel architecture
|
|---|
| 93 | @ "ia32xen"
|
|---|
| 94 | ! [PLATFORM=ia32xen] KARCH (choice)
|
|---|
| 95 |
|
|---|
| 96 | % Kernel architecture
|
|---|
| 97 | @ "ia64"
|
|---|
| 98 | ! [PLATFORM=ia64] KARCH (choice)
|
|---|
| 99 |
|
|---|
| 100 | % Kernel architecture
|
|---|
| 101 | @ "mips32"
|
|---|
| 102 | ! [PLATFORM=mips32] KARCH (choice)
|
|---|
| 103 |
|
|---|
| 104 | % Kernel architecture
|
|---|
| 105 | @ "ppc32"
|
|---|
| 106 | ! [PLATFORM=ppc32] KARCH (choice)
|
|---|
| 107 |
|
|---|
| 108 | % Kernel architecture
|
|---|
| 109 | @ "ppc64"
|
|---|
| 110 | ! [PLATFORM=ppc64] KARCH (choice)
|
|---|
| 111 |
|
|---|
| 112 | % Kernel architecture
|
|---|
| 113 | @ "sparc64"
|
|---|
| 114 | ! [PLATFORM=sparc64] KARCH (choice)
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 | ## Mapping between platform and user space architecture
|
|---|
| 118 |
|
|---|
| 119 | % User space architecture
|
|---|
| 120 | @ "amd64"
|
|---|
| 121 | ! [PLATFORM=amd64] UARCH (choice)
|
|---|
| 122 |
|
|---|
| 123 | % User space architecture
|
|---|
| 124 | @ "arm32"
|
|---|
| 125 | ! [PLATFORM=arm32] UARCH (choice)
|
|---|
| 126 |
|
|---|
| 127 | % User space architecture
|
|---|
| 128 | @ "ia32"
|
|---|
| 129 | ! [PLATFORM=ia32|PLATFORM=ia32xen] UARCH (choice)
|
|---|
| 130 |
|
|---|
| 131 | % User space architecture
|
|---|
| 132 | @ "ia64"
|
|---|
| 133 | ! [PLATFORM=ia64] UARCH (choice)
|
|---|
| 134 |
|
|---|
| 135 | % User space architecture
|
|---|
| 136 | @ "mips32"
|
|---|
| 137 | ! [PLATFORM=mips32&(MACHINE=msim|MACHINE=simics|MACHINE=lgxemul)] UARCH (choice)
|
|---|
| 138 |
|
|---|
| 139 | % User space architecture
|
|---|
| 140 | @ "mips32eb"
|
|---|
| 141 | ! [PLATFORM=mips32&(MACHINE=bgxemul)] UARCH (choice)
|
|---|
| 142 |
|
|---|
| 143 | % User space architecture
|
|---|
| 144 | @ "ppc32"
|
|---|
| 145 | ! [PLATFORM=ppc32] UARCH (choice)
|
|---|
| 146 |
|
|---|
| 147 | % User space architecture
|
|---|
| 148 | @ "ppc64"
|
|---|
| 149 | ! [PLATFORM=ppc64] UARCH (choice)
|
|---|
| 150 |
|
|---|
| 151 | % User space architecture
|
|---|
| 152 | @ "sparc64"
|
|---|
| 153 | ! [PLATFORM=sparc64] UARCH (choice)
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 | ## Mapping between platform and boot architecture
|
|---|
| 157 |
|
|---|
| 158 | % Boot architecture
|
|---|
| 159 | @ "amd64"
|
|---|
| 160 | ! [PLATFORM=amd64] BARCH (choice)
|
|---|
| 161 |
|
|---|
| 162 | % Boot architecture
|
|---|
| 163 | @ "arm32"
|
|---|
| 164 | ! [PLATFORM=arm32] BARCH (choice)
|
|---|
| 165 |
|
|---|
| 166 | % Boot architecture
|
|---|
| 167 | @ "ia32"
|
|---|
| 168 | ! [PLATFORM=ia32] BARCH (choice)
|
|---|
| 169 |
|
|---|
| 170 | % Boot architecture
|
|---|
| 171 | @ "ia32xen"
|
|---|
| 172 | ! [PLATFORM=ia32xen] BARCH (choice)
|
|---|
| 173 |
|
|---|
| 174 | % Boot architecture
|
|---|
| 175 | @ "ia64"
|
|---|
| 176 | ! [PLATFORM=ia64] BARCH (choice)
|
|---|
| 177 |
|
|---|
| 178 | % Boot architecture
|
|---|
| 179 | @ "mips32"
|
|---|
| 180 | ! [PLATFORM=mips32] BARCH (choice)
|
|---|
| 181 |
|
|---|
| 182 | % Boot architecture
|
|---|
| 183 | @ "ppc32"
|
|---|
| 184 | ! [PLATFORM=ppc32] BARCH (choice)
|
|---|
| 185 |
|
|---|
| 186 | % Boot architecture
|
|---|
| 187 | @ "ppc64"
|
|---|
| 188 | ! [PLATFORM=ppc64] BARCH (choice)
|
|---|
| 189 |
|
|---|
| 190 | % Boot architecture
|
|---|
| 191 | @ "sparc64"
|
|---|
| 192 | ! [PLATFORM=sparc64] BARCH (choice)
|
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 | ## Mapping between platform and image format
|
|---|
| 196 |
|
|---|
| 197 | % Image format
|
|---|
| 198 | @ "binary"
|
|---|
| 199 | ! [PLATFORM=mips32&MACHINE=msim] IMAGE (choice)
|
|---|
| 200 |
|
|---|
| 201 | % Image format
|
|---|
| 202 | @ "ecoff"
|
|---|
| 203 | ! [PLATFORM=mips32&(MACHINE=simics|MACHINE=bgxemul|MACHINE=lgxemul)] IMAGE (choice)
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 | ## Compiler options
|
|---|
| 207 |
|
|---|
| 208 | % Compiler
|
|---|
| 209 | @ "gcc_cross" GCC Cross-compiler
|
|---|
| 210 | @ "gcc_native" GCC Native
|
|---|
| 211 | @ "icc_native" ICC Native
|
|---|
| 212 | @ "suncc_native" Sun Studio C Compiler
|
|---|
| 213 | ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice)
|
|---|
| 214 |
|
|---|
| 215 | % Compiler
|
|---|
| 216 | @ "gcc_cross" GCC Cross-compiler
|
|---|
| 217 | @ "gcc_native" GCC Native
|
|---|
| 218 | @ "icc_native" ICC Native
|
|---|
| 219 | ! [PLATFORM=ia64] COMPILER (choice)
|
|---|
| 220 |
|
|---|
| 221 | % Compiler
|
|---|
| 222 | @ "gcc_cross" GCC Cross-compiler
|
|---|
| 223 | @ "gcc_native" GCC Native
|
|---|
| 224 | @ "suncc_native" Sun Studio C Compiler
|
|---|
| 225 | ! [PLATFORM=sparc64] COMPILER (choice)
|
|---|
| 226 |
|
|---|
| 227 | % Compiler
|
|---|
| 228 | @ "gcc_cross" GCC Cross-compiler
|
|---|
| 229 | @ "gcc_native" GCC Native
|
|---|
| 230 | ! [PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] COMPILER (choice)
|
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 | ## Debug build options
|
|---|
| 234 |
|
|---|
| 235 | % Debug build
|
|---|
| 236 | ! CONFIG_DEBUG (y/n)
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 | ## Kernel configuration
|
|---|
| 240 |
|
|---|
| 241 | % Fences
|
|---|
| 242 | ! [PLATFORM=ia32&(MACHINE=athlon-xp|MACHINE=athlon-mp|MACHINE=pentium3)] CONFIG_FENCES_P3 (y)
|
|---|
| 243 |
|
|---|
| 244 | % Fences
|
|---|
| 245 | ! [(PLATFORM=ia32&(MACHINE=pentium4|MACHINE=core))|PLATFORM=amd64] CONFIG_FENCES_P4 (y)
|
|---|
| 246 |
|
|---|
| 247 | % ACPI support
|
|---|
| 248 | ! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_ACPI (y)
|
|---|
| 249 |
|
|---|
| 250 | % Hierarchical page tables support
|
|---|
| 251 | ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
|
|---|
| 252 |
|
|---|
| 253 | % Page hash table support
|
|---|
| 254 | ! [PLATFORM=ia64|PLATFORM=sparc64] CONFIG_PAGE_HT (y)
|
|---|
| 255 |
|
|---|
| 256 | % i8042 controller support
|
|---|
| 257 | ! [PLATFORM=ia32|PLATFORM=amd64|(PLATFORM=ia64&MACHINE=i460GX)] CONFIG_I8042 (y)
|
|---|
| 258 |
|
|---|
| 259 | % Sun keyboard support
|
|---|
| 260 | ! [PLATFORM=sparc64] CONFIG_SUN_KBD (y)
|
|---|
| 261 |
|
|---|
| 262 | % EGA support
|
|---|
| 263 | ! [PLATFORM=ia32|PLATFORM=amd64|(PLATFORM=ia64&MACHINE=i460GX)] CONFIG_EGA (y)
|
|---|
| 264 |
|
|---|
| 265 | % Software integer division support
|
|---|
| 266 | ! [PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_SOFTINT (y)
|
|---|
| 267 |
|
|---|
| 268 | % ASID support
|
|---|
| 269 | ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
|
|---|
| 270 |
|
|---|
| 271 | % ASID FIFO support
|
|---|
| 272 | ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
|
|---|
| 273 |
|
|---|
| 274 | % OpenFirmware tree support
|
|---|
| 275 | ! [PLATFORM=sparc64] CONFIG_OFW_TREE (y)
|
|---|
| 276 |
|
|---|
| 277 | % FPU support
|
|---|
| 278 | ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ia64|PLATFORM=sparc64|(PLATFORM=mips32&(MACHINE=lgxemul|MACHINE=bgxemul))] CONFIG_FPU (y)
|
|---|
| 279 |
|
|---|
| 280 |
|
|---|
| 281 | ## Kernel features options
|
|---|
| 282 |
|
|---|
| 283 | % Support for SMP
|
|---|
| 284 | ! [(PLATFORM=ia32&MACHINE!=athlon-xp)|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ia64] CONFIG_SMP (y/n)
|
|---|
| 285 |
|
|---|
| 286 | % Improved support for hyperthreading
|
|---|
| 287 | ! [((PLATFORM=ia32&MACHINE!=athlon-xp&MACHINE!=athlon-mp&MACHINE!=pentium3)|PLATFORM=amd64)&CONFIG_SMP=y] CONFIG_HT (y/n)
|
|---|
| 288 |
|
|---|
| 289 | % Lazy FPU context switching
|
|---|
| 290 | ! [CONFIG_FPU=y] CONFIG_FPU_LAZY (y/n)
|
|---|
| 291 |
|
|---|
| 292 | % Use VHPT
|
|---|
| 293 | ! [PLATFORM=ia64] CONFIG_VHPT (n/y)
|
|---|
| 294 |
|
|---|
| 295 | % Use TSB
|
|---|
| 296 | ! [PLATFORM=sparc64] CONFIG_TSB (y/n)
|
|---|
| 297 |
|
|---|
| 298 | % Support for Z8530 serial port
|
|---|
| 299 | ! [PLATFORM=sparc64] CONFIG_Z8530 (y/n)
|
|---|
| 300 |
|
|---|
| 301 | % Support for NS16550 serial port
|
|---|
| 302 | ! [PLATFORM=sparc64] CONFIG_NS16550 (y/n)
|
|---|
| 303 |
|
|---|
| 304 | % Support for NS16550 serial port
|
|---|
| 305 | ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_NS16550 (n/y)
|
|---|
| 306 |
|
|---|
| 307 | % Support for Serengeti console
|
|---|
| 308 | ! [PLATFORM=sparc64] CONFIG_SGCN (y/n)
|
|---|
| 309 |
|
|---|
| 310 | % IOSapic on default address support
|
|---|
| 311 | ! [PLATFORM=ia64&MACHINE!=ski] CONFIG_IOSAPIC (y/n)
|
|---|
| 312 |
|
|---|
| 313 | % Virtually indexed D-cache support
|
|---|
| 314 | ! [PLATFORM=sparc64] CONFIG_VIRT_IDX_DCACHE (y/n)
|
|---|
| 315 |
|
|---|
| 316 | % Support for userspace debuggers
|
|---|
| 317 | ! CONFIG_UDEBUG (y/n)
|
|---|
| 318 |
|
|---|
| 319 | % Kernel console support
|
|---|
| 320 | ! CONFIG_KCONSOLE (y/n)
|
|---|
| 321 |
|
|---|
| 322 | % Detailed kernel logging
|
|---|
| 323 | ! CONFIG_LOG (n/y)
|
|---|
| 324 |
|
|---|
| 325 | % Deadlock detection support for spinlocks
|
|---|
| 326 | ! [CONFIG_DEBUG=y&CONFIG_SMP=y] CONFIG_DEBUG_SPINLOCK (y/n)
|
|---|
| 327 |
|
|---|
| 328 | % Compile kernel tests
|
|---|
| 329 | ! CONFIG_TEST (y/n)
|
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 | ## Hardware support
|
|---|
| 333 |
|
|---|
| 334 | % Framebuffer support
|
|---|
| 335 | ! [(PLATFORM=mips32&MACHINE=lgxemul)|(PLATFORM=mips32&MACHINE=bgxemul)|(PLATFORM=ia32)|(PLATFORM=amd64)|(PLATFORM=arm32)|(PLATFORM=sparc64&MACHINE=us3)] CONFIG_FB (y/n)
|
|---|
| 336 |
|
|---|
| 337 | % Framebuffer support
|
|---|
| 338 | ! [PLATFORM=ppc32|(PLATFORM=sparc64&MACHINE=us)] CONFIG_FB (y)
|
|---|
| 339 |
|
|---|
| 340 | % Framebuffer width
|
|---|
| 341 | @ "640"
|
|---|
| 342 | @ "800"
|
|---|
| 343 | @ "1024"
|
|---|
| 344 | @ "1152"
|
|---|
| 345 | @ "1280"
|
|---|
| 346 | @ "1400"
|
|---|
| 347 | @ "1440"
|
|---|
| 348 | @ "1600"
|
|---|
| 349 | @ "2048"
|
|---|
| 350 | ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_FB=y] CONFIG_VESA_WIDTH (choice)
|
|---|
| 351 |
|
|---|
| 352 | % Framebuffer height
|
|---|
| 353 | @ "480"
|
|---|
| 354 | @ "600"
|
|---|
| 355 | @ "768"
|
|---|
| 356 | @ "852"
|
|---|
| 357 | @ "900"
|
|---|
| 358 | @ "960"
|
|---|
| 359 | @ "1024"
|
|---|
| 360 | @ "1050"
|
|---|
| 361 | @ "1200"
|
|---|
| 362 | @ "1536"
|
|---|
| 363 | ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_FB=y] CONFIG_VESA_HEIGHT (choice)
|
|---|
| 364 |
|
|---|
| 365 | % Framebuffer depth
|
|---|
| 366 | @ "8"
|
|---|
| 367 | @ "16"
|
|---|
| 368 | @ "24"
|
|---|
| 369 | ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_FB=y] CONFIG_VESA_BPP (choice)
|
|---|
| 370 |
|
|---|
| 371 | % Start AP processors by the loader
|
|---|
| 372 | ! [PLATFORM=sparc64&CONFIG_SMP=y] CONFIG_AP (y/n)
|
|---|
| 373 |
|
|---|
| 374 | % Use Block Address Translation by the loader
|
|---|
| 375 | ! [PLATFORM=ppc32] CONFIG_BAT (y/n)
|
|---|
| 376 |
|
|---|
| 377 | % Preserve A.OUT header in isofs.b
|
|---|
| 378 | ! [PLATFORM=sparc64] CONFIG_AOUT_ISOFS_B (y/n)
|
|---|
| 379 |
|
|---|
| 380 | % External ramdisk
|
|---|
| 381 | ! [PLATFORM=sparc64] CONFIG_RD_EXTERNAL (y/n)
|
|---|