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"
110 default "$(CROSS_COMPILE)objcopy"
112 comment "Objcopy command"
114 define LINUXBIOS_VERSION
117 comment "LinuxBIOS version"
119 define LINUXBIOS_BUILD
120 default "$(shell date)"
124 define LINUXBIOS_COMPILE_TIME
125 default "$(shell date +%T)"
129 define LINUXBIOS_COMPILE_BY
130 default "$(shell whoami)"
132 comment "Who build this image"
134 define LINUXBIOS_COMPILE_HOST
135 default "$(shell hostname)"
140 define LINUXBIOS_COMPILE_DOMAIN
143 comment "Build domain name"
145 define LINUXBIOS_COMPILER
146 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
148 comment "Build compiler"
150 define LINUXBIOS_LINKER
151 default "$(shell $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
153 comment "Build linker"
155 define LINUXBIOS_ASSEMBLER
156 default "$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
158 comment "Build assembler"
160 define CONFIG_CHIP_CONFIGURE
163 comment "Use new chip_configure method for configuring (non-pci) devices"
166 ###############################################
168 ###############################################
170 define HAVE_FALLBACK_BOOT
173 comment "Set if fallback booting required"
175 define USE_FALLBACK_IMAGE
178 comment "Set to build a fallback image"
180 define USE_NORMAL_IMAGE
182 default {!USE_FALLBACK_IMAGE}
184 comment "Set to build a normal image"
190 comment "Default fallback image size"
196 comment "Size of your ROM"
198 define ROM_IMAGE_SIZE
202 comment "Default image size"
204 define ROM_SECTION_SIZE
205 default {FALLBACK_SIZE}
208 comment "Default rom section size"
210 define ROM_SECTION_OFFSET
211 default {ROM_SIZE - FALLBACK_SIZE}
214 comment "Default rom section offset"
217 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
220 comment "Default payload size"
223 default {PAYLOAD_SIZE}
226 comment "Base of ROM"
232 comment "Default stack size"
238 comment "Default heap size"
244 comment "Base address of RAM"
249 comment "Use cache as temporary RAM if possible"
251 define CACHE_RAM_BASE
255 comment "Base address of cache when using it for temporary RAM"
257 define CACHE_RAM_SIZE
261 comment "Size of cache when using it for temporary RAM"
263 define CONFIG_COMPRESS
266 comment "Set for compressed image"
268 define CONFIG_UNCOMPRESSED
270 default {!CONFIG_COMPRESS}
272 comment "Set for uncompressed image"
274 define HAVE_OPTION_TABLE
277 comment "Export CMOS option table"
279 define USE_OPTION_TABLE
281 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
283 comment "Use option table"
286 ###############################################
288 ###############################################
291 default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
293 comment "Main initialization target"
296 ###############################################
297 # Debugging/Logging options
298 ###############################################
303 comment "Enable debugging code"
305 define CONFIG_CONSOLE_VGA
308 comment "Log messages to VGA"
310 define CONFIG_CONSOLE_LOGBUF
313 comment "Log messages to buffer"
315 define CONFIG_CONSOLE_SROM
318 comment "Log messages to SROM console"
320 define CONFIG_CONSOLE_SERIAL8250
323 comment "Log messages to serial 8250 console"
325 define SERIAL_CONSOLE
328 comment "Log messages to serial console"
331 define DEFAULT_CONSOLE_LOGLEVEL
334 comment "Console will log at this level unless changed"
337 define MAXIMUM_CONSOLE_LOGLEVEL
340 comment "Error messages up to this level can be printed"
346 comment "Disable POST codes"
351 comment "Default baud rate for serial console"
356 comment "Set if we don't have a keyboard"
359 ###############################################
361 ###############################################
364 default "Mainboard_not_set"
366 comment "Mainboard name"
368 define MAINBOARD_PART_NUMBER
369 default "Part_number_not_set"
371 comment "Part number of mainboard"
373 define MAINBOARD_VENDOR
374 default "Vendor_not_set"
376 comment "Vendor of mainboard"
378 define FINAL_MAINBOARD_FIXUP
381 comment "Do final mainboard fixups"
385 ###############################################
387 ###############################################
392 comment "Define if we support SMP"
397 comment "CPU count for this machine"
399 define CONFIG_LOGICAL_CPUS
402 comment "Logical CPU count for this machine"
404 define MAX_PHYSICAL_CPUS
407 comment "Physical CPU count for this machine"
412 comment "Define to build an MP table"
415 ###############################################
417 ###############################################
422 comment "Use ELF boot loader"
424 define CONFIG_IDE_STREAM
427 comment "Boot from IDE device"
429 define CONFIG_ROM_STREAM
432 comment "Boot image is located in ROM"
434 define CONFIG_ROM_STREAM_START
435 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
438 comment "ROM stream start location"
441 ###############################################
443 ###############################################
445 define HAVE_PIRQ_TABLE
448 comment "Define if we have a PIRQ table"
450 define IRQ_SLOT_COUNT
453 comment "Number of IRQ slots"
455 define CONFIG_PCIBIOS_IRQ
458 comment "PCIBIOS IRQ support"
463 comment "IOAPIC support"
466 ###############################################
467 # IDE specific options
468 ###############################################
470 define IDE_BOOT_DRIVE
473 comment "Disk number of boot drive"
478 comment "Swap bytes when reading from IDE device"
483 comment "Sector at which to start searching for boot image"
486 ###############################################
488 ###############################################
490 define SMBUS_MEM_DEVICE_START
493 comment "Start address of SMBUS device"
495 define SMBUS_MEM_DEVICE_END
496 default {SMBUS_MEM_DEVICE_START +1}
498 comment "End address of SMBUS device"
500 define SMBUS_MEM_DEVICE_INC
503 comment "Increment value SMBUS"
506 ###############################################
508 ###############################################
513 comment "Superio base address"
515 define SIO_SYSTEM_CLK_INPUT
518 comment "Superio CLK input default"
521 ###############################################
523 ###############################################
525 define HAVE_HARD_RESET
528 comment "Have hard reset"
533 comment "Set to deal with memory hole"
535 define ENABLE_FIXED_AND_VARIABLE_MTRRS
538 comment "Enable fixed and variable mtrrs"
544 comment "Start CPU segment"
546 define MAX_REBOOT_CNT
549 comment "Set maximum reboots"
551 define DISABLE_WATCHDOG
552 default {MAXIMUM_CONSOLE_LOGLEVEL >= 8}
554 comment "Disable watchdog if we're doing lots of output"
557 ###############################################
558 # Misc device options
559 ###############################################
561 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
566 define INTEL_PPRO_MTRR
577 define CONFIG_UDELAY_TSC
583 ###############################################
584 # Board specifig options
585 ###############################################
587 ###############################################
588 # Options for motorola/sandpoint
589 ###############################################
590 define CONFIG_SANDPOINT_ALTIMUS
593 comment "Configure Sandpoint with Altimus PMC"
595 define CONFIG_SANDPOINT_TALUS
598 comment "Configure Sandpoint with Talus PMC"
600 define CONFIG_SANDPOINT_UNITY
603 comment "Configure Sandpoint with Unity PMC"
605 define CONFIG_SANDPOINT_VALIS
608 comment "Configure Sandpoint with Valis PMC"
610 define CONFIG_SANDPOINT_GYRUS
613 comment "Configure Sandpoint with Gyrus PMC"