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_BUILD
125 default "$(shell date)"
129 define LINUXBIOS_COMPILE_TIME
130 default "$(shell date +%T)"
134 define LINUXBIOS_COMPILE_BY
135 default "$(shell whoami)"
137 comment "Who build this image"
139 define LINUXBIOS_COMPILE_HOST
140 default "$(shell hostname)"
145 define LINUXBIOS_COMPILE_DOMAIN
148 comment "Build domain name"
150 define LINUXBIOS_COMPILER
151 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
153 comment "Build compiler"
155 define LINUXBIOS_LINKER
156 default "$(shell $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
158 comment "Build linker"
160 define LINUXBIOS_ASSEMBLER
161 default "$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
163 comment "Build assembler"
165 define CONFIG_CHIP_CONFIGURE
168 comment "Use new chip_configure method for configuring (non-pci) devices"
171 ###############################################
173 ###############################################
175 define HAVE_FALLBACK_BOOT
178 comment "Set if fallback booting required"
180 define USE_FALLBACK_IMAGE
183 comment "Set to build a fallback image"
185 define USE_NORMAL_IMAGE
187 default {!USE_FALLBACK_IMAGE}
189 comment "Set to build a normal image"
195 comment "Default fallback image size"
201 comment "Size of your ROM"
203 define ROM_IMAGE_SIZE
207 comment "Default image size"
209 define ROM_SECTION_SIZE
210 default {FALLBACK_SIZE}
213 comment "Default rom section size"
215 define ROM_SECTION_OFFSET
216 default {ROM_SIZE - FALLBACK_SIZE}
219 comment "Default rom section offset"
222 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
225 comment "Default payload size"
228 default {PAYLOAD_SIZE}
231 comment "Base address of LinuxBIOS in ROM"
237 comment "Hardware reset vector address"
243 comment "Default stack size"
249 comment "Default heap size"
255 comment "Base address of LinuxBIOS in RAM"
260 comment "Use cache as temporary RAM if possible"
262 define CACHE_RAM_BASE
266 comment "Base address of cache when using it for temporary RAM"
268 define CACHE_RAM_SIZE
272 comment "Size of cache when using it for temporary RAM"
274 define CONFIG_COMPRESS
277 comment "Set for compressed image"
279 define CONFIG_UNCOMPRESSED
281 default {!CONFIG_COMPRESS}
283 comment "Set for uncompressed image"
285 define HAVE_OPTION_TABLE
288 comment "Export CMOS option table"
290 define USE_OPTION_TABLE
292 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
294 comment "Use option table"
297 ###############################################
299 ###############################################
302 default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
304 comment "Main initialization target"
307 ###############################################
308 # Debugging/Logging options
309 ###############################################
314 comment "Enable debugging code"
316 define CONFIG_CONSOLE_VGA
319 comment "Log messages to VGA"
321 define CONFIG_CONSOLE_LOGBUF
324 comment "Log messages to buffer"
326 define CONFIG_CONSOLE_SROM
329 comment "Log messages to SROM console"
331 define CONFIG_CONSOLE_SERIAL8250
334 comment "Log messages to serial 8250 console"
336 define SERIAL_CONSOLE
339 comment "Log messages to serial console"
342 define DEFAULT_CONSOLE_LOGLEVEL
345 comment "Console will log at this level unless changed"
348 define MAXIMUM_CONSOLE_LOGLEVEL
351 comment "Error messages up to this level can be printed"
357 comment "Disable POST codes"
362 comment "Default baud rate for serial console"
367 comment "Set if we don't have a keyboard"
370 ###############################################
372 ###############################################
375 default "Mainboard_not_set"
377 comment "Mainboard name"
379 define MAINBOARD_PART_NUMBER
380 default "Part_number_not_set"
382 comment "Part number of mainboard"
384 define MAINBOARD_VENDOR
385 default "Vendor_not_set"
387 comment "Vendor of mainboard"
389 define FINAL_MAINBOARD_FIXUP
392 comment "Do final mainboard fixups"
394 define CONFIG_SYS_CLK_FREQ
397 comment "System clock frequency in MHz"
400 ###############################################
402 ###############################################
407 comment "Define if we support SMP"
412 comment "CPU count for this machine"
414 define CONFIG_LOGICAL_CPUS
417 comment "Logical CPU count for this machine"
419 define MAX_PHYSICAL_CPUS
422 comment "Physical CPU count for this machine"
427 comment "Define to build an MP table"
430 ###############################################
432 ###############################################
437 comment "Use ELF boot loader"
439 define CONFIG_IDE_STREAM
442 comment "Boot from IDE device"
444 define CONFIG_ROM_STREAM
447 comment "Boot image is located in ROM"
449 define CONFIG_ROM_STREAM_START
450 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
453 comment "ROM stream start location"
456 ###############################################
458 ###############################################
460 define HAVE_PIRQ_TABLE
463 comment "Define if we have a PIRQ table"
465 define IRQ_SLOT_COUNT
468 comment "Number of IRQ slots"
470 define CONFIG_PCIBIOS_IRQ
473 comment "PCIBIOS IRQ support"
478 comment "IOAPIC support"
481 ###############################################
482 # IDE specific options
483 ###############################################
485 define IDE_BOOT_DRIVE
488 comment "Disk number of boot drive"
493 comment "Swap bytes when reading from IDE device"
498 comment "Sector at which to start searching for boot image"
501 ###############################################
503 ###############################################
505 define SMBUS_MEM_DEVICE_START
508 comment "Start address of SMBUS device"
510 define SMBUS_MEM_DEVICE_END
511 default {SMBUS_MEM_DEVICE_START +1}
513 comment "End address of SMBUS device"
515 define SMBUS_MEM_DEVICE_INC
518 comment "Increment value SMBUS"
521 ###############################################
523 ###############################################
528 comment "Superio base address"
530 define SIO_SYSTEM_CLK_INPUT
533 comment "Superio CLK input default"
536 ###############################################
538 ###############################################
540 define HAVE_HARD_RESET
543 comment "Have hard reset"
548 comment "Set to deal with memory hole"
550 define ENABLE_FIXED_AND_VARIABLE_MTRRS
553 comment "Enable fixed and variable mtrrs"
559 comment "Start CPU segment"
561 define MAX_REBOOT_CNT
564 comment "Set maximum reboots"
566 define DISABLE_WATCHDOG
567 default {MAXIMUM_CONSOLE_LOGLEVEL >= 8}
569 comment "Disable watchdog if we're doing lots of output"
572 ###############################################
573 # Misc device options
574 ###############################################
576 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
581 define INTEL_PPRO_MTRR
592 define CONFIG_UDELAY_TSC
598 ###############################################
599 # Board specifig options
600 ###############################################
602 ###############################################
603 # Options for motorola/sandpoint
604 ###############################################
605 define CONFIG_SANDPOINT_ALTIMUS
608 comment "Configure Sandpoint with Altimus PMC"
610 define CONFIG_SANDPOINT_TALUS
613 comment "Configure Sandpoint with Talus PMC"
615 define CONFIG_SANDPOINT_UNITY
618 comment "Configure Sandpoint with Unity PMC"
620 define CONFIG_SANDPOINT_VALIS
623 comment "Configure Sandpoint with Valis PMC"
625 define CONFIG_SANDPOINT_GYRUS
628 comment "Configure Sandpoint with Gyrus PMC"