More kconfig cleanups:
[coreboot.git] / src / Kconfig
index 225ef2ec9f473453bbf7779a0b3c564f6170ee3b..5ffc3563e5ce4b9292fd5ffc58aecf684006bf10 100644 (file)
 
 mainmenu "Coreboot Configuration"
 
+menu "General setup"
+
+config LOCALVERSION
+       string "Local version string"
+       help
+         Append an extra string to the end of the coreboot version.
+
+         This can be useful if, for instance, you want to append the
+         respective board's hostname or some other identifying string to
+         the coreboot version number, so that you can easily distinguish
+         boot logs of different boards from each other.
+
+endmenu
+
 source src/mainboard/Kconfig
 source src/arch/i386/Kconfig
 source src/arch/ppc/Kconfig
-source src/devices/Kconfig
 source src/northbridge/Kconfig
+source src/devices/Kconfig
 source src/southbridge/Kconfig
 source src/superio/Kconfig
 source src/cpu/Kconfig
 
-config CBFS
-       bool
-       default y
-
-config HAVE_HIGH_TABLES
-       bool
-       default y
-
 config PCI_BUS_SEGN_BITS
        int
        default 0
 
 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
        hex
-       default 0
+       default 0x0
 
 config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
        hex
-       default 0
+       default 0x0
 
 config CPU_ADDR_BITS
        int
        default 36
 
+config AGP_APERTURE_SIZE
+       hex
+       default 0x0
+
 config XIP_ROM_BASE
        hex
        default 0xfffe0000
@@ -81,21 +91,13 @@ config LB_CKS_LOC
        default 126
 
 config LOGICAL_CPUS
-       int
-       default 1
+       bool
+       default y
 
 config PCI_ROM_RUN
        bool
        default n
 
-config HT_CHAIN_UNITID_BASE
-       int
-       default 1
-
-config HT_CHAIN_END_UNITID_BASE
-       int
-       default 32
-
 config HEAP_SIZE
        hex
        default 0x2000
@@ -136,10 +138,6 @@ config LB_MEM_TOPK
        int
        default 2048
 
-config MULTIBOOT
-       bool
-       default n
-
 config COMPRESSED_PAYLOAD_LZMA
        bool
        default y
@@ -158,10 +156,6 @@ config ACPI_SSDTX_NUM
        int
        default 0
 
-config HAVE_ACPI_TABLES
-       bool
-       default n
-
 config HAVE_FALLBACK_BOOT
        bool
        default y
@@ -170,6 +164,14 @@ config USE_FALLBACK_IMAGE
        bool
        default y
 
+config HAVE_FAILOVER_BOOT
+       bool
+       default n
+
+config USE_FAILOVER_IMAGE
+       bool
+       default n
+
 config HAVE_HARD_RESET
        bool
        default n
@@ -186,18 +188,10 @@ config HAVE_MOVNTI
        bool
        default y
 
-config HAVE_MP_TABLE
-       bool
-       default n
-
 config HAVE_OPTION_TABLE
        bool
        default y
 
-config HAVE_PIRQ_TABLE
-       bool
-       default n
-
 config PIRQ_ROUTE
        bool
        default n
@@ -214,23 +208,77 @@ config IOAPIC
        bool
        default n
 
+config VIDEO_MB
+       int
+       default 0
+
+config USE_WATCHDOG_ON_BOOT
+       bool
+       default n
+
+config VGA
+       bool
+       default n
+       help
+         Build board-specific VGA code.
+
+config GFXUMA
+       bool
+       default n
+       help
+         Enable Unified Memory Architecture for graphics.
+
 # TODO
 # menu "Drivers"
-# 
+#
 # endmenu
 
-menu "Payload"
+menu "System tables"
 
-config COMPRESSED_PAYLOAD_LZMA
-       bool "Use LZMA compression for payloads"
-       default yes
+config HAVE_LOW_TABLES
+       bool
+       default y
+
+config HAVE_HIGH_TABLES
+       bool "Write 'high' tables to avoid being overwritten in F segment"
+       default y
+
+config MULTIBOOT
+       bool "Generate Multiboot tables (for GRUB2)"
+       default n
+
+config HAVE_ACPI_TABLES
+       bool "Generate ACPI tables"
+       default n
+
+config HAVE_MP_TABLE
+       bool "Generate an MP table"
+       default n
+
+config HAVE_PIRQ_TABLE
+       bool "Generate a PIRQ table"
+       default n
+
+endmenu
+
+menu "Payload"
 
 choice
-       prompt "Payload type"
+       prompt "Add a payload"
        default PAYLOAD_NONE
 
+config PAYLOAD_NONE
+       bool "None"
+       help
+         Select this option if you want to create an "empty" coreboot
+         ROM image for a certain mainboard, i.e. a coreboot ROM image
+         which does not yet contain a payload.
+
+         For such an image to be useful, you have to use 'cbfstool'
+         to add a payload to the ROM image later.
+
 config PAYLOAD_ELF
-       bool "An ELF executable payload file"
+       bool "An ELF executable payload"
        help
          Select this option if you have a payload image (an ELF file)
          which coreboot should run as soon as the basic hardware
@@ -238,15 +286,6 @@ config PAYLOAD_ELF
 
          You will be able to specify the location and file name of the
          payload image later.
-config PAYLOAD_NONE
-       bool "No payload"
-       help
-         Select this option if you want to create an "empty" coreboot
-         ROM image for a certain mainboard, i.e. a coreboot ROM image
-         which does not yet contain a payload.
-
-         For such an image to be useful, you have to use the 'cbfs' tool
-         to add a payload to the ROM image later.
 
 endchoice
 
@@ -257,6 +296,15 @@ config FALLBACK_PAYLOAD_FILE
        help
          The path and filename of the ELF executable file to use as payload.
 
+# TODO: Defined if no payload? Breaks build?
+config COMPRESSED_PAYLOAD_LZMA
+       bool "Use LZMA compression for payloads"
+       default y
+       depends on PAYLOAD_ELF
+       help
+         In order to reduce the size payloads take up in the ROM chip
+         coreboot can compress them using the LZMA algorithm.
+
 endmenu
 
 menu "VGA BIOS"
@@ -282,11 +330,20 @@ config FALLBACK_VGA_BIOS_ID
        depends on VGA_BIOS
        default "1106,3230"
        help
-         The ID that would associate your VGA BIOS to your video card.
-         (PCI VendorID, PCI Device ID)
+         The comma-separated PCI vendor and device ID that would associate
+         your VGA BIOS to your video card.
+
+         Example: 1106,3230
+
+         In the above example 1106 is the PCI vendor ID (in hex, but without
+         the "0x" prefix) and 3230 specifies the PCI device ID of the
+         video card (also in hex, without "0x" prefix).
 
 endmenu
 
+menu "Debugging"
+
+# TODO: Better help text and detailed instructions.
 config GDB_STUB
        bool "GDB debugging support"
        default y
@@ -294,3 +351,5 @@ config GDB_STUB
          If enabled, you will be able to set breakpoints for gdb debugging.
          See src/arch/i386/lib/c_start.S for details.
 
+endmenu
+