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
190 comment "Set to build a fallback image"
196 comment "Default fallback image size"
202 comment "Size of your ROM"
204 define ROM_IMAGE_SIZE
208 comment "Default image size"
210 define ROM_SECTION_SIZE
211 default {FALLBACK_SIZE}
214 comment "Default rom section size"
216 define ROM_SECTION_OFFSET
217 default {ROM_SIZE - FALLBACK_SIZE}
220 comment "Default rom section offset"
223 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
226 comment "Default payload size"
229 default {PAYLOAD_SIZE}
232 comment "Base address of LinuxBIOS in ROM"
238 comment "Hardware reset vector address"
244 comment "Default stack size"
250 comment "Default heap size"
256 comment "Base address of LinuxBIOS in RAM"
261 comment "Use cache as temporary RAM if possible"
263 define CACHE_RAM_BASE
267 comment "Base address of cache when using it for temporary RAM"
269 define CACHE_RAM_SIZE
273 comment "Size of cache when using it for temporary RAM"
279 comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
285 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
287 define CONFIG_COMPRESS
290 comment "Set for compressed image"
292 define CONFIG_UNCOMPRESSED
294 default {!CONFIG_COMPRESS}
296 comment "Set for uncompressed image"
298 define HAVE_OPTION_TABLE
301 comment "Export CMOS option table"
303 define USE_OPTION_TABLE
305 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
307 comment "Use option table"
310 ###############################################
312 ###############################################
315 default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
317 comment "Main initialization target"
320 ###############################################
321 # Debugging/Logging options
322 ###############################################
327 comment "Enable debugging code"
329 define CONFIG_CONSOLE_VGA
332 comment "Log messages to VGA"
334 define CONFIG_CONSOLE_LOGBUF
337 comment "Log messages to buffer"
339 define CONFIG_CONSOLE_SROM
342 comment "Log messages to SROM console"
344 define CONFIG_CONSOLE_SERIAL8250
347 comment "Log messages to 8250 uart based serial console"
349 define DEFAULT_CONSOLE_LOGLEVEL
352 comment "Console will log at this level unless changed"
355 define MAXIMUM_CONSOLE_LOGLEVEL
358 comment "Error messages up to this level can be printed"
364 comment "Disable POST codes"
370 comment "Base address for 8250 uart for the serial console"
376 comment "Default baud rate for serial console"
382 comment "Default flow control settings for the 8250 serial console uart"
385 ###############################################
387 ###############################################
390 default "Mainboard_not_set"
392 comment "Mainboard name"
394 define MAINBOARD_PART_NUMBER
395 default "Part_number_not_set"
397 comment "Part number of mainboard"
399 define MAINBOARD_VENDOR
400 default "Vendor_not_set"
402 comment "Vendor of mainboard"
404 define CONFIG_SYS_CLK_FREQ
407 comment "System clock frequency in MHz"
410 define CONFIG_KEYBOARD
413 comment "Run PC keyboard enable code"
416 define CONFIG_LEGACY_VGABIOS
419 comment "Support for legacy VGA BIOS"
421 ###############################################
423 ###############################################
428 comment "Define if we support SMP"
430 define CONFIG_MAX_CPUS
433 comment "Maximum CPU count for this machine"
435 define CONFIG_MAX_PHYSICAL_CPUS
436 default {CONFIG_MAX_CPUS}
438 comment "Physical CPU count for this machine"
440 define CONFIG_LOGICAL_CPUS
443 comment "Should multiple cpus per die be enabled?"
448 comment "Define to build an MP table"
451 ###############################################
453 ###############################################
455 define CONFIG_IDE_STREAM
458 comment "Boot from IDE device"
460 define CONFIG_ROM_STREAM
463 comment "Boot image is located in ROM"
465 define CONFIG_ROM_STREAM_START
466 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
469 comment "ROM stream start location"
472 ###############################################
474 ###############################################
476 define HAVE_PIRQ_TABLE
479 comment "Define if we have a PIRQ table"
481 define IRQ_SLOT_COUNT
484 comment "Number of IRQ slots"
486 define CONFIG_PCIBIOS_IRQ
489 comment "PCIBIOS IRQ support"
494 comment "IOAPIC support"
497 ###############################################
498 # IDE specific options
499 ###############################################
501 define IDE_BOOT_DRIVE
504 comment "Disk number of boot drive"
509 comment "Swap bytes when reading from IDE device"
514 comment "Sector at which to start searching for boot image"
517 ###############################################
519 ###############################################
521 define HAVE_HARD_RESET
524 comment "Have hard reset"
529 comment "Set to deal with memory hole"
531 define MAX_REBOOT_CNT
534 comment "Set maximum reboots"
537 ###############################################
538 # Misc device options
539 ###############################################
541 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
544 comment "Use timer2 to callibrate the x86 time stamp counter"
546 define INTEL_PPRO_MTRR
551 define CONFIG_UDELAY_TSC
554 comment "Implement udelay with the x86 time stamp counter"
557 ###############################################
558 # Board specific options
559 ###############################################
561 ###############################################
562 # Options for motorola/sandpoint
563 ###############################################
564 define CONFIG_SANDPOINT_ALTIMUS
567 comment "Configure Sandpoint with Altimus PMC"
569 define CONFIG_SANDPOINT_TALUS
572 comment "Configure Sandpoint with Talus PMC"
574 define CONFIG_SANDPOINT_UNITY
577 comment "Configure Sandpoint with Unity PMC"
579 define CONFIG_SANDPOINT_VALIS
582 comment "Configure Sandpoint with Valis PMC"
584 define CONFIG_SANDPOINT_GYRUS
587 comment "Configure Sandpoint with Gyrus PMC"