1 #######################################################
3 # Main options file for LinuxBIOS
5 # Each option used by a part must be defined in
6 # this file. The format for options is:
9 # default <expr> | {<expr>} | "<string>" | none
11 # export always | used | never
17 # <name> is the name of the option
18 # <expr> is a numeric expression
19 # <string> is a string
21 # Either a default value or 'default none' must
22 # be specified for every option. An option
23 # specified as 'default none' will not be exported
24 # (i.e. will remain undefined) unless it has
25 # been assigned a value.
27 # Option values can be an immediate expression that
28 # evaluates to a numeric value, a delayed expression
29 # (surrounded by curley braces), or a string
30 # (surrounded by double quotes.)
32 # Immediate expressions are evaluated at the time an
33 # option is defined or set and the numeric result
34 # becomes the value of the option.
36 # Delayed expression are evaluated at the time the
37 # option is used, either in another expression or
38 # when being exported.
40 # String values will have the double quotes removed
43 # Format strings determine the print format that is
44 # used when exporting options. The default format
45 # is "%s" for strings and "%d" for numbers.
47 # Exported options generate entries in the
48 # Makefile.settings file. Options can be always
49 # exported, exported only if used, or never exported.
51 # A comment string must be supplied for every option.
53 #######################################################
55 ###############################################
56 # Architecture options
57 ###############################################
62 comment "Default architecture is i386, options are alpha and ppc"
87 comment "Do CPU fixups"
90 ###############################################
92 ###############################################
97 comment "Cross compiler prefix"
100 default "$(CROSS_COMPILE)gcc"
102 comment "Target C Compiler"
107 comment "Host C Compiler"
112 comment "Additional per-cpu CFLAGS"
115 default "$(CROSS_COMPILE)objcopy"
117 comment "Objcopy command"
119 define LINUXBIOS_VERSION
122 comment "LinuxBIOS version"
124 define LINUXBIOS_EXTRA_VERSION
127 comment "LinuxBIOS extra version"
129 define LINUXBIOS_BUILD
130 default "$(shell date)"
134 define LINUXBIOS_COMPILE_TIME
135 default "$(shell date +%T)"
139 define LINUXBIOS_COMPILE_BY
140 default "$(shell whoami)"
142 comment "Who build this image"
144 define LINUXBIOS_COMPILE_HOST
145 default "$(shell hostname)"
150 define LINUXBIOS_COMPILE_DOMAIN
153 comment "Build domain name"
155 define LINUXBIOS_COMPILER
156 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
158 comment "Build compiler"
160 define LINUXBIOS_LINKER
161 default "$(shell $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
163 comment "Build linker"
165 define LINUXBIOS_ASSEMBLER
166 default "$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
168 comment "Build assembler"
170 define CONFIG_CHIP_CONFIGURE
173 comment "Use new chip_configure method for configuring (non-pci) devices"
176 ###############################################
178 ###############################################
180 define HAVE_FALLBACK_BOOT
183 comment "Set if fallback booting required"
185 define USE_FALLBACK_IMAGE
188 comment "Set to build a fallback image"
190 define USE_NORMAL_IMAGE
192 default {!USE_FALLBACK_IMAGE}
194 comment "Set to build a normal image"
200 comment "Default fallback image size"
206 comment "Size of your ROM"
208 define ROM_IMAGE_SIZE
212 comment "Default image size"
214 define ROM_SECTION_SIZE
215 default {FALLBACK_SIZE}
218 comment "Default rom section size"
220 define ROM_SECTION_OFFSET
221 default {ROM_SIZE - FALLBACK_SIZE}
224 comment "Default rom section offset"
227 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
230 comment "Default payload size"
233 default {PAYLOAD_SIZE}
236 comment "Base address of LinuxBIOS in ROM"
242 comment "Hardware reset vector address"
248 comment "Default stack size"
254 comment "Default heap size"
260 comment "Base address of LinuxBIOS in RAM"
265 comment "Use cache as temporary RAM if possible"
267 define CACHE_RAM_BASE
271 comment "Base address of cache when using it for temporary RAM"
273 define CACHE_RAM_SIZE
277 comment "Size of cache when using it for temporary RAM"
283 comment "base address of range of ROM that can be cached to speed up linuxBIOS"
289 comment "size of range of ROM that can be cached to speed up linuxBIOS"
291 define CONFIG_COMPRESS
294 comment "Set for compressed image"
296 define CONFIG_UNCOMPRESSED
298 default {!CONFIG_COMPRESS}
300 comment "Set for uncompressed image"
302 define HAVE_OPTION_TABLE
305 comment "Export CMOS option table"
307 define USE_OPTION_TABLE
309 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
311 comment "Use option table"
314 ###############################################
316 ###############################################
319 default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
321 comment "Main initialization target"
324 ###############################################
325 # Debugging/Logging options
326 ###############################################
331 comment "Enable debugging code"
333 define CONFIG_CONSOLE_VGA
336 comment "Log messages to VGA"
338 define CONFIG_CONSOLE_LOGBUF
341 comment "Log messages to buffer"
343 define CONFIG_CONSOLE_SROM
346 comment "Log messages to SROM console"
348 define CONFIG_CONSOLE_SERIAL8250
351 comment "Log messages to serial 8250 console"
353 define SERIAL_CONSOLE
356 comment "Log messages to serial console"
359 define DEFAULT_CONSOLE_LOGLEVEL
362 comment "Console will log at this level unless changed"
365 define MAXIMUM_CONSOLE_LOGLEVEL
368 comment "Error messages up to this level can be printed"
374 comment "Disable POST codes"
379 comment "Default baud rate for serial console"
384 comment "Set if we don't have a keyboard"
387 ###############################################
389 ###############################################
392 default "Mainboard_not_set"
394 comment "Mainboard name"
396 define MAINBOARD_PART_NUMBER
397 default "Part_number_not_set"
399 comment "Part number of mainboard"
401 define MAINBOARD_VENDOR
402 default "Vendor_not_set"
404 comment "Vendor of mainboard"
406 define FINAL_MAINBOARD_FIXUP
409 comment "Do final mainboard fixups"
411 define CONFIG_SYS_CLK_FREQ
414 comment "System clock frequency in MHz"
417 ###############################################
419 ###############################################
424 comment "Define if we support SMP"
426 define CONFIG_MAX_CPUS
429 comment "Config CPU count for this machine"
434 comment "CPU count for this machine"
436 define CONFIG_LOGICAL_CPUS
439 comment "Logical CPU count for this machine"
441 define MAX_PHYSICAL_CPUS
444 comment "Physical CPU count for this machine"
449 comment "Define to build an MP table"
452 ###############################################
454 ###############################################
459 comment "Use ELF boot loader"
461 define CONFIG_IDE_STREAM
464 comment "Boot from IDE device"
466 define CONFIG_ROM_STREAM
469 comment "Boot image is located in ROM"
471 define CONFIG_ROM_STREAM_START
472 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
475 comment "ROM stream start location"
478 ###############################################
480 ###############################################
482 define HAVE_PIRQ_TABLE
485 comment "Define if we have a PIRQ table"
487 define IRQ_SLOT_COUNT
490 comment "Number of IRQ slots"
492 define CONFIG_PCIBIOS_IRQ
495 comment "PCIBIOS IRQ support"
500 comment "IOAPIC support"
503 ###############################################
504 # IDE specific options
505 ###############################################
507 define IDE_BOOT_DRIVE
510 comment "Disk number of boot drive"
515 comment "Swap bytes when reading from IDE device"
520 comment "Sector at which to start searching for boot image"
523 ###############################################
525 ###############################################
527 define SMBUS_MEM_DEVICE_START
530 comment "Start address of SMBUS device"
532 define SMBUS_MEM_DEVICE_END
533 default {SMBUS_MEM_DEVICE_START +1}
535 comment "End address of SMBUS device"
537 define SMBUS_MEM_DEVICE_INC
540 comment "Increment value SMBUS"
543 ###############################################
545 ###############################################
550 comment "Superio base address"
552 define SIO_SYSTEM_CLK_INPUT
555 comment "Superio CLK input default"
558 ###############################################
560 ###############################################
562 define HAVE_HARD_RESET
565 comment "Have hard reset"
570 comment "Set to deal with memory hole"
572 define ENABLE_FIXED_AND_VARIABLE_MTRRS
575 comment "Enable fixed and variable mtrrs"
581 comment "Start CPU segment"
583 define MAX_REBOOT_CNT
586 comment "Set maximum reboots"
588 define DISABLE_WATCHDOG
589 default {MAXIMUM_CONSOLE_LOGLEVEL >= 8}
591 comment "Disable watchdog if we're doing lots of output"
596 comment "Enable IOMMU aperture"
599 ###############################################
600 # Misc device options
601 ###############################################
603 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
608 define INTEL_PPRO_MTRR
619 define CONFIG_UDELAY_TSC
625 ###############################################
626 # Board specifig options
627 ###############################################
629 ###############################################
630 # Options for motorola/sandpoint
631 ###############################################
632 define CONFIG_SANDPOINT_ALTIMUS
635 comment "Configure Sandpoint with Altimus PMC"
637 define CONFIG_SANDPOINT_TALUS
640 comment "Configure Sandpoint with Talus PMC"
642 define CONFIG_SANDPOINT_UNITY
645 comment "Configure Sandpoint with Unity PMC"
647 define CONFIG_SANDPOINT_VALIS
650 comment "Configure Sandpoint with Valis PMC"
652 define CONFIG_SANDPOINT_GYRUS
655 comment "Configure Sandpoint with Gyrus PMC"