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"
92 comment "Do CPU fixups"
95 ###############################################
97 ###############################################
102 comment "Cross compiler prefix"
105 default "$(CROSS_COMPILE)gcc"
107 comment "Target C Compiler"
112 comment "Host C Compiler"
117 comment "Additional per-cpu CFLAGS"
120 default "$(CROSS_COMPILE)objcopy"
122 comment "Objcopy command"
124 define LINUXBIOS_VERSION
128 comment "LinuxBIOS version"
130 define LINUXBIOS_EXTRA_VERSION
134 comment "LinuxBIOS extra version"
136 define LINUXBIOS_BUILD
137 default "$(shell date)"
142 define LINUXBIOS_COMPILE_TIME
143 default "$(shell date +%T)"
148 define LINUXBIOS_COMPILE_BY
149 default "$(shell whoami)"
152 comment "Who build this image"
154 define LINUXBIOS_COMPILE_HOST
155 default "$(shell hostname)"
161 define LINUXBIOS_COMPILE_DOMAIN
162 default "$(shell dnsdomainname)"
165 comment "Build domain name"
167 define LINUXBIOS_COMPILER
168 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
171 comment "Build compiler"
173 define LINUXBIOS_LINKER
174 default "$(shell $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
177 comment "Build linker"
179 define LINUXBIOS_ASSEMBLER
180 default "$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
183 comment "Build assembler"
185 define CONFIG_CHIP_CONFIGURE
188 comment "Use new chip_configure method for configuring (non-pci) devices"
190 define CONFIG_USE_INIT
193 comment "Use stage 1 initialization code"
196 ###############################################
198 ###############################################
200 define HAVE_FALLBACK_BOOT
204 comment "Set if fallback booting required"
206 define USE_FALLBACK_IMAGE
210 comment "Set to build a fallback image"
216 comment "Default fallback image size"
222 comment "Size of your ROM"
224 define ROM_IMAGE_SIZE
228 comment "Default image size"
230 define ROM_SECTION_SIZE
231 default {FALLBACK_SIZE}
234 comment "Default rom section size"
236 define ROM_SECTION_OFFSET
237 default {ROM_SIZE - FALLBACK_SIZE}
240 comment "Default rom section offset"
243 default {ROM_SECTION_SIZE - ROM_IMAGE_SIZE}
246 comment "Default payload size"
249 default {PAYLOAD_SIZE}
252 comment "Base address of LinuxBIOS in ROM"
258 comment "Start address of LinuxBIOS in ROM"
264 comment "Hardware reset vector address"
266 define _EXCEPTION_VECTORS
267 default {_ROMBASE+0x100}
270 comment "Address of exception vector table"
276 comment "Default stack size"
282 comment "Default heap size"
288 comment "Base address of LinuxBIOS in RAM"
294 comment "Start address of LinuxBIOS in RAM"
296 define USE_DCACHE_RAM
299 comment "Use data cache as temporary RAM if possible"
301 define DCACHE_RAM_BASE
305 comment "Base address of data cache when using it for temporary RAM"
307 define DCACHE_RAM_SIZE
311 comment "Size of data cache when using it for temporary RAM"
317 comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
323 comment "Size of area to cache during LinuxBIOS execution directly from ROM"
325 define CONFIG_COMPRESS
328 comment "Set for compressed image"
330 define CONFIG_UNCOMPRESSED
332 default {!CONFIG_COMPRESS}
334 comment "Set for uncompressed image"
336 define CONFIG_LB_MEM_TOPK
340 comment "Kilobytes of memory to initialized before executing code from RAM"
342 define HAVE_OPTION_TABLE
345 comment "Export CMOS option table"
347 define USE_OPTION_TABLE
349 default {HAVE_OPTION_TABLE && !USE_FALLBACK_IMAGE}
351 comment "Use option table"
354 ###############################################
355 # CMOS variable options
356 ###############################################
357 define LB_CKS_RANGE_START
361 comment "First CMOS byte to use for LinuxBIOS options"
363 define LB_CKS_RANGE_END
367 comment "Last CMOS byte to use for LinuxBIOS options"
373 comment "Pair of bytes to use for CMOS checksum"
377 ###############################################
379 ###############################################
382 default "$(TOP)/src/arch/$(ARCH)/init/crt0.S.lb"
384 comment "Main initialization target"
387 ###############################################
388 # Debugging/Logging options
389 ###############################################
394 comment "Enable debugging code"
396 define CONFIG_CONSOLE_VGA
399 comment "Log messages to VGA"
401 define CONFIG_CONSOLE_BTEXT
404 comment "Log messages to btext fb console"
406 define CONFIG_CONSOLE_LOGBUF
409 comment "Log messages to buffer"
411 define CONFIG_CONSOLE_SROM
414 comment "Log messages to SROM console"
416 define CONFIG_CONSOLE_SERIAL8250
419 comment "Log messages to 8250 uart based serial console"
421 define DEFAULT_CONSOLE_LOGLEVEL
424 comment "Console will log at this level unless changed"
426 define MAXIMUM_CONSOLE_LOGLEVEL
429 comment "Error messages up to this level can be printed"
431 define CONFIG_SERIAL_POST
434 comment "Enable SERIAL POST codes"
439 comment "Disable POST codes"
445 comment "Base address for 8250 uart for the serial console"
450 comment "Default baud rate for serial console"
456 comment "Allow UART divisor to be set explicitly"
462 comment "Default flow control settings for the 8250 serial console uart"
465 ###############################################
467 ###############################################
470 default "Mainboard_not_set"
472 comment "Mainboard name"
474 define MAINBOARD_PART_NUMBER
475 default "Part_number_not_set"
478 comment "Part number of mainboard"
480 define MAINBOARD_VENDOR
481 default "Vendor_not_set"
484 comment "Vendor of mainboard"
486 define MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
489 comment "PCI Vendor ID of mainboard manufacturer"
491 define MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
495 comment "PCI susbsystem device id assigned my mainboard manufacturer"
497 define MAINBOARD_POWER_ON_AFTER_POWER_FAIL
500 comment "Default power on after power fail setting"
502 define CONFIG_SYS_CLK_FREQ
505 comment "System clock frequency in MHz"
507 define CONFIG_LEGACY_VGABIOS
510 comment "Support for legacy VGA BIOS"
515 comment "Base of Legacy VGA in Rom"
517 ###############################################
519 ###############################################
524 comment "Define if we support SMP"
526 define CONFIG_MAX_CPUS
529 comment "Maximum CPU count for this machine"
531 define CONFIG_LOGICAL_CPUS
534 comment "Should multiple cpus per die be enabled?"
539 comment "Define to build an MP table"
542 ###############################################
544 ###############################################
546 define CONFIG_IDE_STREAM
549 comment "Boot from IDE device"
551 define CONFIG_ROM_STREAM
554 comment "Boot image is located in ROM"
556 define CONFIG_ROM_STREAM_START
557 default {0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1}
560 comment "ROM stream start location"
562 define CONFIG_FS_STREAM
565 comment "Boot from a filesystem"
567 define CONFIG_FS_EXT2
570 comment "Enable ext2 filesystem support"
572 define CONFIG_FS_ISO9660
575 comment "Enable ISO9660 filesystem support"
580 comment "Enable FAT filesystem support"
582 define AUTOBOOT_DELAY
585 comment "Delay (in seconds) before autobooting"
587 define AUTOBOOT_CMDLINE
588 default "hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"
591 comment "Default command line when autobooting"
594 ###############################################
596 ###############################################
598 define HAVE_PIRQ_TABLE
601 comment "Define if we have a PIRQ table"
603 define IRQ_SLOT_COUNT
606 comment "Number of IRQ slots"
608 define CONFIG_PCIBIOS_IRQ
611 comment "PCIBIOS IRQ support"
616 comment "IOAPIC support"
619 ###############################################
620 # IDE specific options
621 ###############################################
626 comment "Define to include IDE support"
628 define IDE_BOOT_DRIVE
631 comment "Disk number of boot drive"
636 comment "Swap bytes when reading from IDE device"
641 comment "Sector at which to start searching for boot image"
644 ###############################################
645 # Options for memory mapped I/O
646 ###############################################
652 comment "Address of PCI Configuration Address Register"
658 comment "Address of PCI Configuration Data Register"
664 comment "Base address of PCI/ISA I/O address range"
670 comment "Base address of PCI/ISA memory address range"
676 comment "PNP Configuration Address Register offset"
682 comment "PNP Configuration Data Register offset"
688 comment "Base address of memory mapped I/O operations"
691 ###############################################
692 # Options for embedded systems
693 ###############################################
695 define EMBEDDED_RAM_SIZE
698 comment "Embedded boards generally have fixed RAM size"
701 ###############################################
703 ###############################################
705 define HAVE_HARD_RESET
708 comment "Have hard reset"
710 define HARD_RESET_BUS
713 comment "Bus number of southbridge device doing reset"
715 define HARD_RESET_DEVICE
718 comment "Device number of southbridge device doing reset"
720 define HARD_RESET_FUNCTION
723 comment "Function number of southbridge device doing reset"
728 comment "Set to deal with memory hole"
730 define MAX_REBOOT_CNT
733 comment "Set maximum reboots"
736 ###############################################
737 # Misc device options
738 ###############################################
740 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
743 comment "Use timer2 to callibrate the x86 time stamp counter"
745 define INTEL_PPRO_MTRR
750 define CONFIG_UDELAY_TSC
753 comment "Implement udelay with the x86 time stamp counter"
758 comment "Use this to fake spd rom values"
761 define HAVE_ACPI_TABLES
764 comment "Define to build ACPI tables"
767 define AGP_APERTURE_SIZE
771 comment "AGP graphics virtual memory aperture size"
774 ###############################################
775 # Board specific options
776 ###############################################
778 ###############################################
779 # Options for motorola/sandpoint
780 ###############################################
781 define CONFIG_SANDPOINT_ALTIMUS
784 comment "Configure Sandpoint with Altimus PMC"
786 define CONFIG_SANDPOINT_TALUS
789 comment "Configure Sandpoint with Talus PMC"
791 define CONFIG_SANDPOINT_UNITY
794 comment "Configure Sandpoint with Unity PMC"
796 define CONFIG_SANDPOINT_VALIS
799 comment "Configure Sandpoint with Valis PMC"
801 define CONFIG_SANDPOINT_GYRUS
804 comment "Configure Sandpoint with Gyrus PMC"
807 ###############################################
808 # Options for totalimpact/briq
809 ###############################################
810 define CONFIG_BRIQ_750FX
813 comment "Configure briQ with PowerPC 750FX"
815 define CONFIG_BRIQ_7400
818 comment "Configure briQ with PowerPC G4"