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
151 default "$(shell dnsdomainname)"
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
184 comment "Set if fallback booting required"
186 define USE_FALLBACK_IMAGE
194 comment "Set to build a fallback 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 "Start address of area to cache during LinuxBIOS execution directly from ROM"
289 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
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 8250 uart based serial console"
353 define DEFAULT_CONSOLE_LOGLEVEL
356 comment "Console will log at this level unless changed"
359 define MAXIMUM_CONSOLE_LOGLEVEL
362 comment "Error messages up to this level can be printed"
368 comment "Disable POST codes"
374 comment "Base address for 8250 uart for the serial console"
380 comment "Default baud rate for serial console"
386 comment "Default flow control settings for the 8250 serial console uart"
389 ###############################################
391 ###############################################
394 default "Mainboard_not_set"
396 comment "Mainboard name"
398 define MAINBOARD_PART_NUMBER
399 default "Part_number_not_set"
401 comment "Part number of mainboard"
403 define MAINBOARD_VENDOR
404 default "Vendor_not_set"
406 comment "Vendor of mainboard"
408 define CONFIG_SYS_CLK_FREQ
411 comment "System clock frequency in MHz"
414 define CONFIG_KEYBOARD
417 comment "Run PC keyboard enable code"
420 define CONFIG_LEGACY_VGABIOS
423 comment "Support for legacy VGA BIOS"
425 ###############################################
427 ###############################################
432 comment "Define if we support SMP"
434 define CONFIG_MAX_CPUS
437 comment "Maximum CPU count for this machine"
439 define CONFIG_MAX_PHYSICAL_CPUS
440 default {CONFIG_MAX_CPUS}
442 comment "Physical CPU count for this machine"
444 define CONFIG_LOGICAL_CPUS
447 comment "Should multiple cpus per die be enabled?"
452 comment "Define to build an MP table"
455 ###############################################
457 ###############################################
459 define CONFIG_IDE_STREAM
462 comment "Boot from IDE device"
464 define CONFIG_ROM_STREAM
467 comment "Boot image is located in ROM"
469 define CONFIG_ROM_STREAM_START
470 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
473 comment "ROM stream start location"
476 ###############################################
478 ###############################################
480 define HAVE_PIRQ_TABLE
483 comment "Define if we have a PIRQ table"
485 define IRQ_SLOT_COUNT
488 comment "Number of IRQ slots"
490 define CONFIG_PCIBIOS_IRQ
493 comment "PCIBIOS IRQ support"
498 comment "IOAPIC support"
501 ###############################################
502 # IDE specific options
503 ###############################################
505 define IDE_BOOT_DRIVE
508 comment "Disk number of boot drive"
513 comment "Swap bytes when reading from IDE device"
518 comment "Sector at which to start searching for boot image"
521 ###############################################
523 ###############################################
525 define SMBUS_MEM_DEVICE_START
528 comment "Start address of SMBUS device"
530 define SMBUS_MEM_DEVICE_END
531 default {SMBUS_MEM_DEVICE_START +1}
533 comment "End address of SMBUS device"
535 define SMBUS_MEM_DEVICE_INC
538 comment "Increment value SMBUS"
541 ###############################################
543 ###############################################
545 define HAVE_HARD_RESET
548 comment "Have hard reset"
553 comment "Set to deal with memory hole"
555 define MAX_REBOOT_CNT
558 comment "Set maximum reboots"
561 ###############################################
562 # Misc device options
563 ###############################################
565 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
568 comment "Use timer2 to callibrate the x86 time stamp counter"
570 define INTEL_PPRO_MTRR
575 define CONFIG_UDELAY_TSC
578 comment "Implement udelay with the x86 time stamp counter"
581 ###############################################
582 # Board specific options
583 ###############################################
585 ###############################################
586 # Options for motorola/sandpoint
587 ###############################################
588 define CONFIG_SANDPOINT_ALTIMUS
591 comment "Configure Sandpoint with Altimus PMC"
593 define CONFIG_SANDPOINT_TALUS
596 comment "Configure Sandpoint with Talus PMC"
598 define CONFIG_SANDPOINT_UNITY
601 comment "Configure Sandpoint with Unity PMC"
603 define CONFIG_SANDPOINT_VALIS
606 comment "Configure Sandpoint with Valis PMC"
608 define CONFIG_SANDPOINT_GYRUS
611 comment "Configure Sandpoint with Gyrus PMC"