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
183 comment "Set if fallback booting required"
185 define USE_FALLBACK_IMAGE
188 comment "Set to build a fallback image"
194 comment "Default fallback image size"
200 comment "Size of your ROM"
202 define ROM_IMAGE_SIZE
206 comment "Default image size"
208 define ROM_SECTION_SIZE
209 default {FALLBACK_SIZE}
212 comment "Default rom section size"
214 define ROM_SECTION_OFFSET
215 default {ROM_SIZE - FALLBACK_SIZE}
218 comment "Default rom section offset"
221 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
224 comment "Default payload size"
227 default {PAYLOAD_SIZE}
230 comment "Base address of LinuxBIOS in ROM"
236 comment "Hardware reset vector address"
242 comment "Default stack size"
248 comment "Default heap size"
254 comment "Base address of LinuxBIOS in RAM"
259 comment "Use cache as temporary RAM if possible"
261 define CACHE_RAM_BASE
265 comment "Base address of cache when using it for temporary RAM"
267 define CACHE_RAM_SIZE
271 comment "Size of cache when using it for temporary RAM"
277 comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
283 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
285 define CONFIG_COMPRESS
288 comment "Set for compressed image"
290 define CONFIG_UNCOMPRESSED
292 default {!CONFIG_COMPRESS}
294 comment "Set for uncompressed image"
296 define HAVE_OPTION_TABLE
299 comment "Export CMOS option table"
301 define USE_OPTION_TABLE
303 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
305 comment "Use option table"
308 ###############################################
310 ###############################################
313 default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
315 comment "Main initialization target"
318 ###############################################
319 # Debugging/Logging options
320 ###############################################
325 comment "Enable debugging code"
327 define CONFIG_CONSOLE_VGA
330 comment "Log messages to VGA"
332 define CONFIG_CONSOLE_LOGBUF
335 comment "Log messages to buffer"
337 define CONFIG_CONSOLE_SROM
340 comment "Log messages to SROM console"
342 define CONFIG_CONSOLE_SERIAL8250
345 comment "Log messages to 8250 uart based serial console"
347 define DEFAULT_CONSOLE_LOGLEVEL
350 comment "Console will log at this level unless changed"
353 define MAXIMUM_CONSOLE_LOGLEVEL
356 comment "Error messages up to this level can be printed"
362 comment "Disable POST codes"
368 comment "Base address for 8250 uart for the serial console"
374 comment "Default baud rate for serial console"
380 comment "Default flow control settings for the 8250 serial console uart"
383 ###############################################
385 ###############################################
388 default "Mainboard_not_set"
390 comment "Mainboard name"
392 define MAINBOARD_PART_NUMBER
393 default "Part_number_not_set"
395 comment "Part number of mainboard"
397 define MAINBOARD_VENDOR
398 default "Vendor_not_set"
400 comment "Vendor of mainboard"
402 define CONFIG_SYS_CLK_FREQ
405 comment "System clock frequency in MHz"
408 ###############################################
410 ###############################################
415 comment "Define if we support SMP"
417 define CONFIG_MAX_CPUS
420 comment "Maximum CPU count for this machine"
422 define CONFIG_MAX_PHYSICAL_CPUS
423 default {CONFIG_MAX_CPUS}
425 comment "Physical CPU count for this machine"
427 define CONFIG_LOGICAL_CPUS
430 comment "Should multiple cpus per die be enabled?"
435 comment "Define to build an MP table"
438 ###############################################
440 ###############################################
442 define CONFIG_IDE_STREAM
445 comment "Boot from IDE device"
447 define CONFIG_ROM_STREAM
450 comment "Boot image is located in ROM"
452 define CONFIG_ROM_STREAM_START
453 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
456 comment "ROM stream start location"
459 ###############################################
461 ###############################################
463 define HAVE_PIRQ_TABLE
466 comment "Define if we have a PIRQ table"
468 define IRQ_SLOT_COUNT
471 comment "Number of IRQ slots"
473 define CONFIG_PCIBIOS_IRQ
476 comment "PCIBIOS IRQ support"
481 comment "IOAPIC support"
484 ###############################################
485 # IDE specific options
486 ###############################################
488 define IDE_BOOT_DRIVE
491 comment "Disk number of boot drive"
496 comment "Swap bytes when reading from IDE device"
501 comment "Sector at which to start searching for boot image"
504 ###############################################
506 ###############################################
508 define SMBUS_MEM_DEVICE_START
511 comment "Start address of SMBUS device"
513 define SMBUS_MEM_DEVICE_END
514 default {SMBUS_MEM_DEVICE_START +1}
516 comment "End address of SMBUS device"
518 define SMBUS_MEM_DEVICE_INC
521 comment "Increment value SMBUS"
524 ###############################################
526 ###############################################
528 define HAVE_HARD_RESET
531 comment "Have hard reset"
536 comment "Set to deal with memory hole"
538 define MAX_REBOOT_CNT
541 comment "Set maximum reboots"
544 ###############################################
545 # Misc device options
546 ###############################################
548 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
551 comment "Use timer2 to callibrate the x86 time stamp counter"
553 define INTEL_PPRO_MTRR
558 define CONFIG_UDELAY_TSC
561 comment "Implement udelay with the x86 time stamp counter"
564 ###############################################
565 # Board specifig options
566 ###############################################
568 ###############################################
569 # Options for motorola/sandpoint
570 ###############################################
571 define CONFIG_SANDPOINT_ALTIMUS
574 comment "Configure Sandpoint with Altimus PMC"
576 define CONFIG_SANDPOINT_TALUS
579 comment "Configure Sandpoint with Talus PMC"
581 define CONFIG_SANDPOINT_UNITY
584 comment "Configure Sandpoint with Unity PMC"
586 define CONFIG_SANDPOINT_VALIS
589 comment "Configure Sandpoint with Valis PMC"
591 define CONFIG_SANDPOINT_GYRUS
594 comment "Configure Sandpoint with Gyrus PMC"