Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.
[coreboot.git] / src / Kconfig
index a06b43b1573e041532e871b58f4cdfad405e4e8d..c2a56e1dbf6c33505d3287342005b2c87d8c5698 100644 (file)
@@ -29,6 +29,14 @@ mainmenu "Coreboot Configuration"
 
 menu "General setup"
 
+config EXPERT
+       bool "Expert mode"
+       help
+         This allows you to select certain advanced configuration options.
+
+         Warning: Only enable this option if you really know what you are
+         doing! You have been warned!
+
 config LOCALVERSION
        string "Local version string"
        help
@@ -43,12 +51,21 @@ endmenu
 
 source src/mainboard/Kconfig
 source src/arch/i386/Kconfig
-source src/arch/ppc/Kconfig
+
+menu "Chipset"
+
+comment "CPU"
+source src/cpu/Kconfig
+comment "Northbridge"
 source src/northbridge/Kconfig
-source src/devices/Kconfig
+comment "Southbridge"
 source src/southbridge/Kconfig
+comment "Super I/O"
 source src/superio/Kconfig
-source src/cpu/Kconfig
+comment "Devices"
+source src/devices/Kconfig
+
+endmenu
 
 config PCI_BUS_SEGN_BITS
        int
@@ -66,10 +83,6 @@ config CPU_ADDR_BITS
        int
        default 36
 
-config AGP_APERTURE_SIZE
-       hex
-       default 0x0
-
 config XIP_ROM_BASE
        hex
        default 0xfffe0000
@@ -100,7 +113,7 @@ config PCI_ROM_RUN
 
 config HEAP_SIZE
        hex
-       default 0x2000
+       default 0x4000
 
 config COREBOOT_V2
        bool
@@ -134,21 +147,12 @@ config MMCONF_SUPPORT
        bool
        default n
 
-config LB_MEM_TOPK
+config RAMTOP
        hex
-       default 0x800
-
-config COMPRESSED_PAYLOAD_LZMA
-       bool
-       default y
-
-config COMPRESSED_PAYLOAD_NRV2B
-       bool
-       default n
+       default 0x200000
 
 config ATI_RAGE_XL
        bool
-       default n
 
 source src/console/Kconfig
 
@@ -182,7 +186,7 @@ config HAVE_HARD_RESET
 
 config HAVE_INIT_TIMER
        bool
-       default n
+       default y
 
 config HAVE_MAINBOARD_RESOURCES
        bool
@@ -190,7 +194,7 @@ config HAVE_MAINBOARD_RESOURCES
 
 config HAVE_MOVNTI
        bool
-       default y
+       default n
 
 config HAVE_OPTION_TABLE
        bool
@@ -216,6 +220,7 @@ config IOAPIC
        bool
        default n
 
+# TODO: Can probably be removed once all chipsets have kconfig options for it.
 config VIDEO_MB
        int
        default 0
@@ -241,6 +246,27 @@ config GFXUMA
 #
 # endmenu
 
+#TODO Remove this option or make it useful.
+config HAVE_LOW_TABLES
+       bool
+       default y
+       help
+         This Option is unused in the code.  Since two boards try to set it to
+         'n', they may be broken.  We either need to make the option useful or
+         get rid of it.  The broken boards are:
+         asus/m2v-mx_se
+         supermicro/h8dme
+
+config HAVE_HIGH_TABLES
+       bool
+       default n
+       help
+         This variable specifies whether a given northbridge has high table
+         support.
+         It is set in northbridge/*/Kconfig.
+         Whether or not the high tables are actually written by coreboot is
+         configurable by the user via WRITE_HIGH_TABLES.
+
 config HAVE_ACPI_TABLES
        bool
        help
@@ -265,14 +291,26 @@ config HAVE_PIRQ_TABLE
          Whether or not the PIRQ table is actually generated by coreboot
          is configurable by the user via GENERATE_PIRQ_TABLE.
 
-config HAVE_HIGH_TABLES
+#These Options are here to avoid "undefined" warnings.
+#The actual selection and help texts are in the following menu.
+
+config GENERATE_ACPI_TABLES
        bool
+       default HAVE_ACPI_TABLES
 
-menu "System tables"
+config GENERATE_MP_TABLE
+       bool
+       default HAVE_MP_TABLE
 
-config HAVE_LOW_TABLES
+config GENERATE_PIRQ_TABLE
        bool
-       default y
+       default HAVE_PIRQ_TABLE
+
+config WRITE_HIGH_TABLES
+       bool
+       default HAVE_HIGH_TABLES
+
+menu "System tables"
 
 config WRITE_HIGH_TABLES
        bool "Write 'high' tables to avoid being overwritten in F segment"
@@ -281,7 +319,7 @@ config WRITE_HIGH_TABLES
 
 config MULTIBOOT
        bool "Generate Multiboot tables (for GRUB2)"
-       default n
+       default y
 
 config GENERATE_ACPI_TABLES
        depends on HAVE_ACPI_TABLES
@@ -357,6 +395,10 @@ config COMPRESSED_PAYLOAD_LZMA
          In order to reduce the size payloads take up in the ROM chip
          coreboot can compress them using the LZMA algorithm.
 
+config COMPRESSED_PAYLOAD_NRV2B
+       bool
+       default n
+
 endmenu
 
 menu "VGA BIOS"
@@ -378,7 +420,7 @@ config FALLBACK_VGA_BIOS_FILE
          The path and filename of the file to use as VGA BIOS.
 
 config FALLBACK_VGA_BIOS_ID
-       string "VGA BIOS ID"
+       string "VGA device PCI IDs"
        depends on VGA_BIOS
        default "1106,3230"
        help
@@ -405,3 +447,23 @@ config GDB_STUB
 
 endmenu
 
+config LIFT_BSP_APIC_ID
+       bool
+       default n
+
+# These probably belong somewhere else, but they are needed somewhere.
+config AP_CODE_IN_CAR
+       bool
+       default n
+
+config USE_INIT
+       bool
+       default n
+
+config ENABLE_APIC_EXT_ID
+       bool
+       default n
+
+config WARNINGS_ARE_ERRORS
+       bool
+       default n