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"
175 define CONFIG_USE_INIT
178 comment "Use stage 1 initialization code"
181 ###############################################
183 ###############################################
185 define HAVE_FALLBACK_BOOT
189 comment "Set if fallback booting required"
191 define USE_FALLBACK_IMAGE
195 comment "Set to build a fallback image"
201 comment "Default fallback image size"
207 comment "Size of your ROM"
209 define ROM_IMAGE_SIZE
213 comment "Default image size"
215 define ROM_SECTION_SIZE
216 default {FALLBACK_SIZE}
219 comment "Default rom section size"
221 define ROM_SECTION_OFFSET
222 default {ROM_SIZE - FALLBACK_SIZE}
225 comment "Default rom section offset"
228 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
231 comment "Default payload size"
234 default {PAYLOAD_SIZE}
237 comment "Base address of LinuxBIOS in ROM"
243 comment "Start address of LinuxBIOS in ROM"
249 comment "Hardware reset vector address"
251 define _EXCEPTION_VECTORS
252 default {_ROMBASE+0x100}
255 comment "Address of exception vector table"
261 comment "Default stack size"
267 comment "Default heap size"
273 comment "Base address of LinuxBIOS in RAM"
279 comment "Start address of LinuxBIOS in RAM"
281 define USE_DCACHE_RAM
284 comment "Use data cache as temporary RAM if possible"
286 define DCACHE_RAM_BASE
290 comment "Base address of data cache when using it for temporary RAM"
292 define DCACHE_RAM_SIZE
296 comment "Size of data cache when using it for temporary RAM"
302 comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
308 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
310 define CONFIG_COMPRESS
313 comment "Set for compressed image"
315 define CONFIG_UNCOMPRESSED
317 default {!CONFIG_COMPRESS}
319 comment "Set for uncompressed image"
321 define CONFIG_LB_MEM_TOPK
325 comment "Kilobytes of memory to initialized before executing code from RAM"
327 define HAVE_OPTION_TABLE
330 comment "Export CMOS option table"
332 define USE_OPTION_TABLE
334 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
336 comment "Use option table"
339 ###############################################
340 # CMOS variable options
341 ###############################################
342 define LB_CKS_RANGE_START
346 comment "First CMOS byte to use for LinuxBIOS options"
348 define LB_CKS_RANGE_END
352 comment "Last CMOS byte to use for LinuxBIOS options"
358 comment "Pair of bytes to use for CMOS checksum"
362 ###############################################
364 ###############################################
367 default "$(TOP)/src/arch/$(ARCH)/init/crt0.S.lb"
369 comment "Main initialization target"
372 ###############################################
373 # Debugging/Logging options
374 ###############################################
379 comment "Enable debugging code"
381 define CONFIG_CONSOLE_VGA
384 comment "Log messages to VGA"
386 define CONFIG_CONSOLE_BTEXT
389 comment "Log messages to btext fb console"
391 define CONFIG_CONSOLE_LOGBUF
394 comment "Log messages to buffer"
396 define CONFIG_CONSOLE_SROM
399 comment "Log messages to SROM console"
401 define CONFIG_CONSOLE_SERIAL8250
404 comment "Log messages to 8250 uart based serial console"
406 define DEFAULT_CONSOLE_LOGLEVEL
409 comment "Console will log at this level unless changed"
411 define MAXIMUM_CONSOLE_LOGLEVEL
414 comment "Error messages up to this level can be printed"
416 define CONFIG_SERIAL_POST
419 comment "Enable SERIAL POST codes"
424 comment "Disable POST codes"
430 comment "Base address for 8250 uart for the serial console"
435 comment "Default baud rate for serial console"
441 comment "Allow UART divisor to be set explicitly"
447 comment "Default flow control settings for the 8250 serial console uart"
450 ###############################################
452 ###############################################
455 default "Mainboard_not_set"
457 comment "Mainboard name"
459 define MAINBOARD_PART_NUMBER
460 default "Part_number_not_set"
462 comment "Part number of mainboard"
464 define MAINBOARD_VENDOR
465 default "Vendor_not_set"
467 comment "Vendor of mainboard"
469 define MAINBOARD_POWER_ON_AFTER_POWER_FAIL
472 comment "Default power on after power fail setting"
474 define CONFIG_SYS_CLK_FREQ
477 comment "System clock frequency in MHz"
479 define CONFIG_LEGACY_VGABIOS
482 comment "Support for legacy VGA BIOS"
487 comment "Base of Legacy VGA in Rom"
489 ###############################################
491 ###############################################
496 comment "Define if we support SMP"
498 define CONFIG_MAX_CPUS
501 comment "Maximum CPU count for this machine"
503 define CONFIG_MAX_PHYSICAL_CPUS
504 default {CONFIG_MAX_CPUS}
506 comment "Physical CPU count for this machine"
508 define CONFIG_LOGICAL_CPUS
511 comment "Should multiple cpus per die be enabled?"
516 comment "Define to build an MP table"
519 ###############################################
521 ###############################################
523 define CONFIG_IDE_STREAM
526 comment "Boot from IDE device"
528 define CONFIG_ROM_STREAM
531 comment "Boot image is located in ROM"
533 define CONFIG_ROM_STREAM_START
534 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
537 comment "ROM stream start location"
539 define CONFIG_FS_STREAM
542 comment "Boot from a filesystem"
544 define CONFIG_FS_EXT2
547 comment "Enable ext2 filesystem support"
549 define CONFIG_FS_ISO9660
552 comment "Enable ISO9660 filesystem support"
557 comment "Enable FAT filesystem support"
559 define AUTOBOOT_DELAY
562 comment "Delay (in seconds) before autobooting"
564 define AUTOBOOT_CMDLINE
565 default "hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"
568 comment "Default command line when autobooting"
571 ###############################################
573 ###############################################
575 define HAVE_PIRQ_TABLE
578 comment "Define if we have a PIRQ table"
580 define IRQ_SLOT_COUNT
583 comment "Number of IRQ slots"
585 define CONFIG_PCIBIOS_IRQ
588 comment "PCIBIOS IRQ support"
593 comment "IOAPIC support"
596 ###############################################
597 # IDE specific options
598 ###############################################
603 comment "Define to include IDE support"
605 define IDE_BOOT_DRIVE
608 comment "Disk number of boot drive"
613 comment "Swap bytes when reading from IDE device"
618 comment "Sector at which to start searching for boot image"
621 ###############################################
622 # Options for memory mapped I/O
623 ###############################################
629 comment "Address of PCI Configuration Address Register"
635 comment "Address of PCI Configuration Data Register"
641 comment "Base address of PCI/ISA I/O address range"
647 comment "Base address of PCI/ISA memory address range"
653 comment "PNP Configuration Address Register offset"
659 comment "PNP Configuration Data Register offset"
665 comment "Base address of memory mapped I/O operations"
668 ###############################################
669 # Options for embedded systems
670 ###############################################
672 define EMBEDDED_RAM_SIZE
675 comment "Embedded boards generally have fixed RAM size"
678 ###############################################
680 ###############################################
682 define HAVE_HARD_RESET
685 comment "Have hard reset"
687 define HARD_RESET_BUS
690 comment "Bus number of southbridge device doing reset"
692 define HARD_RESET_DEVICE
695 comment "Device number of southbridge device doing reset"
697 define HARD_RESET_FUNCTION
700 comment "Function number of southbridge device doing reset"
705 comment "Set to deal with memory hole"
707 define MAX_REBOOT_CNT
710 comment "Set maximum reboots"
713 ###############################################
714 # Misc device options
715 ###############################################
717 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
720 comment "Use timer2 to callibrate the x86 time stamp counter"
722 define INTEL_PPRO_MTRR
727 define CONFIG_UDELAY_TSC
730 comment "Implement udelay with the x86 time stamp counter"
735 comment "Use this to fake spd rom values"
738 define HAVE_ACPI_TABLES
741 comment "Define to build ACPI tables"
744 define AGP_APERTURE_SIZE
748 comment "AGP graphics virtual memory aperture size"
751 ###############################################
752 # Board specific options
753 ###############################################
755 ###############################################
756 # Options for motorola/sandpoint
757 ###############################################
758 define CONFIG_SANDPOINT_ALTIMUS
761 comment "Configure Sandpoint with Altimus PMC"
763 define CONFIG_SANDPOINT_TALUS
766 comment "Configure Sandpoint with Talus PMC"
768 define CONFIG_SANDPOINT_UNITY
771 comment "Configure Sandpoint with Unity PMC"
773 define CONFIG_SANDPOINT_VALIS
776 comment "Configure Sandpoint with Valis PMC"
778 define CONFIG_SANDPOINT_GYRUS
781 comment "Configure Sandpoint with Gyrus PMC"
784 ###############################################
785 # Options for totalimpact/briq
786 ###############################################
787 define CONFIG_BRIQ_750FX
790 comment "Configure briQ with PowerPC 750FX"
792 define CONFIG_BRIQ_7400
795 comment "Configure briQ with PowerPC G4"