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"
67 comment "This cpu supports the MOVNTI directive"
70 ###############################################
72 ###############################################
77 comment "Cross compiler prefix"
80 default "$(CROSS_COMPILE)gcc"
82 comment "Target C Compiler"
87 comment "Host C Compiler"
92 comment "Additional per-cpu CFLAGS"
95 default "$(CROSS_COMPILE)objcopy --gap-fill 0xff"
97 comment "Objcopy command"
99 define LINUXBIOS_VERSION
103 comment "LinuxBIOS version"
105 define LINUXBIOS_EXTRA_VERSION
109 comment "LinuxBIOS extra version"
111 define LINUXBIOS_BUILD
112 default "$(shell date)"
117 define LINUXBIOS_COMPILE_TIME
118 default "$(shell date +%T)"
123 define LINUXBIOS_COMPILE_BY
124 default "$(shell whoami)"
127 comment "Who build this image"
129 define LINUXBIOS_COMPILE_HOST
130 default "$(shell hostname)"
136 define LINUXBIOS_COMPILE_DOMAIN
137 default "$(shell dnsdomainname)"
140 comment "Build domain name"
142 define LINUXBIOS_COMPILER
143 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
146 comment "Build compiler"
148 define LINUXBIOS_LINKER
149 default "$(shell $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
152 comment "Build linker"
154 define LINUXBIOS_ASSEMBLER
155 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"
165 define CONFIG_USE_INIT
168 comment "Use stage 1 initialization code"
171 ###############################################
173 ###############################################
175 define HAVE_FALLBACK_BOOT
179 comment "Set if fallback booting required"
181 define USE_FALLBACK_IMAGE
185 comment "Set to build a fallback image"
191 comment "Default fallback image size"
197 comment "Size of your ROM"
199 define ROM_IMAGE_SIZE
203 comment "Default image size"
205 define ROM_SECTION_SIZE
206 default {FALLBACK_SIZE}
209 comment "Default rom section size"
211 define ROM_SECTION_OFFSET
212 default {ROM_SIZE - FALLBACK_SIZE}
215 comment "Default rom section offset"
218 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
221 comment "Default payload size"
224 default {PAYLOAD_SIZE}
227 comment "Base address of LinuxBIOS in ROM"
233 comment "Start address of LinuxBIOS in ROM"
239 comment "Hardware reset vector address"
241 define _EXCEPTION_VECTORS
242 default {_ROMBASE+0x100}
245 comment "Address of exception vector table"
251 comment "Default stack size"
257 comment "Default heap size"
263 comment "Base address of LinuxBIOS in RAM"
269 comment "Start address of LinuxBIOS in RAM"
271 define USE_DCACHE_RAM
274 comment "Use data cache as temporary RAM if possible"
276 define DCACHE_RAM_BASE
280 comment "Base address of data cache when using it for temporary RAM"
282 define DCACHE_RAM_SIZE
286 comment "Size of data cache when using it for temporary RAM"
292 comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
298 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
300 define CONFIG_COMPRESS
303 comment "Set for compressed image"
305 define CONFIG_UNCOMPRESSED
307 default {!CONFIG_COMPRESS}
309 comment "Set for uncompressed image"
311 define CONFIG_LB_MEM_TOPK
315 comment "Kilobytes of memory to initialized before executing code from RAM"
317 define HAVE_OPTION_TABLE
320 comment "Export CMOS option table"
322 define USE_OPTION_TABLE
324 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
326 comment "Use option table"
329 ###############################################
330 # CMOS variable options
331 ###############################################
332 define LB_CKS_RANGE_START
336 comment "First CMOS byte to use for LinuxBIOS options"
338 define LB_CKS_RANGE_END
342 comment "Last CMOS byte to use for LinuxBIOS options"
348 comment "Pair of bytes to use for CMOS checksum"
352 ###############################################
354 ###############################################
357 default "$(TOP)/src/arch/$(ARCH)/init/crt0.S.lb"
359 comment "Main initialization target"
362 ###############################################
363 # Debugging/Logging options
364 ###############################################
369 comment "Enable debugging code"
371 define CONFIG_CONSOLE_VGA
374 comment "Log messages to VGA"
376 define CONFIG_CONSOLE_BTEXT
379 comment "Log messages to btext fb console"
381 define CONFIG_CONSOLE_LOGBUF
384 comment "Log messages to buffer"
386 define CONFIG_CONSOLE_SROM
389 comment "Log messages to SROM console"
391 define CONFIG_CONSOLE_SERIAL8250
394 comment "Log messages to 8250 uart based serial console"
396 define DEFAULT_CONSOLE_LOGLEVEL
399 comment "Console will log at this level unless changed"
401 define MAXIMUM_CONSOLE_LOGLEVEL
404 comment "Error messages up to this level can be printed"
406 define CONFIG_SERIAL_POST
409 comment "Enable SERIAL POST codes"
414 comment "Disable POST codes"
420 comment "Base address for 8250 uart for the serial console"
425 comment "Default baud rate for serial console"
431 comment "Allow UART divisor to be set explicitly"
437 comment "Default flow control settings for the 8250 serial console uart"
440 ###############################################
442 ###############################################
445 default "Mainboard_not_set"
447 comment "Mainboard name"
449 define MAINBOARD_PART_NUMBER
450 default "Part_number_not_set"
453 comment "Part number of mainboard"
455 define MAINBOARD_VENDOR
456 default "Vendor_not_set"
459 comment "Vendor of mainboard"
461 define MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
464 comment "PCI Vendor ID of mainboard manufacturer"
466 define MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
470 comment "PCI susbsystem device id assigned my mainboard manufacturer"
472 define MAINBOARD_POWER_ON_AFTER_POWER_FAIL
475 comment "Default power on after power fail setting"
477 define CONFIG_SYS_CLK_FREQ
480 comment "System clock frequency in MHz"
482 define CONFIG_LEGACY_VGABIOS
485 comment "Support for legacy VGA BIOS"
490 comment "Base of Legacy VGA in Rom"
492 ###############################################
494 ###############################################
499 comment "Define if we support SMP"
501 define CONFIG_MAX_CPUS
504 comment "Maximum CPU count for this machine"
506 define CONFIG_MAX_PHYSICAL_CPUS
509 comment "Maximum physical CPU count for this machine"
511 define CONFIG_LOGICAL_CPUS
514 comment "Should multiple cpus per die be enabled?"
519 comment "Define to build an MP table"
521 define SERIAL_CPU_INIT
524 comment "Serialize CPU init"
527 ###############################################
529 ###############################################
531 define CONFIG_IDE_STREAM
534 comment "Boot from IDE device"
536 define CONFIG_ROM_STREAM
539 comment "Boot image is located in ROM"
541 define CONFIG_ROM_STREAM_START
542 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
545 comment "ROM stream start location"
547 define CONFIG_FS_STREAM
550 comment "Boot from a filesystem"
552 define CONFIG_FS_EXT2
555 comment "Enable ext2 filesystem support"
557 define CONFIG_FS_ISO9660
560 comment "Enable ISO9660 filesystem support"
565 comment "Enable FAT filesystem support"
567 define AUTOBOOT_DELAY
570 comment "Delay (in seconds) before autobooting"
572 define AUTOBOOT_CMDLINE
573 default "hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"
576 comment "Default command line when autobooting"
579 ###############################################
581 ###############################################
583 define HAVE_PIRQ_TABLE
586 comment "Define if we have a PIRQ table"
588 define IRQ_SLOT_COUNT
591 comment "Number of IRQ slots"
593 define CONFIG_PCIBIOS_IRQ
596 comment "PCIBIOS IRQ support"
601 comment "IOAPIC support"
604 ###############################################
605 # IDE specific options
606 ###############################################
611 comment "Define to include IDE support"
613 define IDE_BOOT_DRIVE
616 comment "Disk number of boot drive"
621 comment "Swap bytes when reading from IDE device"
626 comment "Sector at which to start searching for boot image"
629 ###############################################
630 # Options for memory mapped I/O
631 ###############################################
637 comment "Address of PCI Configuration Address Register"
643 comment "Address of PCI Configuration Data Register"
649 comment "Base address of PCI/ISA I/O address range"
655 comment "Base address of PCI/ISA memory address range"
661 comment "PNP Configuration Address Register offset"
667 comment "PNP Configuration Data Register offset"
673 comment "Base address of memory mapped I/O operations"
676 ###############################################
677 # Options for embedded systems
678 ###############################################
680 define EMBEDDED_RAM_SIZE
683 comment "Embedded boards generally have fixed RAM size"
686 ###############################################
688 ###############################################
690 define CONFIG_CHIP_NAME
693 comment "Compile in the chip name"
696 define CONFIG_GDB_STUB
699 comment "Compile in gdb stub support?"
702 define HAVE_INIT_TIMER
705 comment "Have a init_timer function"
707 define HAVE_HARD_RESET
710 comment "Have hard reset"
712 define HARD_RESET_BUS
715 comment "Bus number of southbridge device doing reset"
717 define HARD_RESET_DEVICE
720 comment "Device number of southbridge device doing reset"
722 define HARD_RESET_FUNCTION
725 comment "Function number of southbridge device doing reset"
730 comment "Set to deal with memory hole"
732 define MAX_REBOOT_CNT
735 comment "Set maximum reboots"
738 ###############################################
739 # Misc device options
740 ###############################################
742 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
745 comment "Use timer2 to callibrate the x86 time stamp counter"
747 define INTEL_PPRO_MTRR
752 define CONFIG_UDELAY_TSC
755 comment "Implement udelay with the x86 time stamp counter"
760 comment "Use this to fake spd rom values"
763 define HAVE_ACPI_TABLES
766 comment "Define to build ACPI tables"
769 define AGP_APERTURE_SIZE
773 comment "AGP graphics virtual memory aperture size"
776 define CK804_DEVN_BASE
779 comment "CK804 device count from 0 or 1"
782 define K8_E0_MEM_HOLE_SIZEK
785 comment "Opteron E0 later memory hole size in K"
788 define CONFIG_PCI_ROM_RUN
791 comment "Init PCI device option rom"
795 ###############################################
796 # Board specific options
797 ###############################################
799 ###############################################
800 # Options for motorola/sandpoint
801 ###############################################
802 define CONFIG_SANDPOINT_ALTIMUS
805 comment "Configure Sandpoint with Altimus PMC"
807 define CONFIG_SANDPOINT_TALUS
810 comment "Configure Sandpoint with Talus PMC"
812 define CONFIG_SANDPOINT_UNITY
815 comment "Configure Sandpoint with Unity PMC"
817 define CONFIG_SANDPOINT_VALIS
820 comment "Configure Sandpoint with Valis PMC"
822 define CONFIG_SANDPOINT_GYRUS
825 comment "Configure Sandpoint with Gyrus PMC"
828 ###############################################
829 # Options for totalimpact/briq
830 ###############################################
831 define CONFIG_BRIQ_750FX
834 comment "Configure briQ with PowerPC 750FX"
836 define CONFIG_BRIQ_7400
839 comment "Configure briQ with PowerPC G4"