Kconfig: Move CBFS_SIZE into Mainboard menu
The CBFS size is really mainboard specific, since it really depends on size of the chip on the mainboard, so it makes sense to have it in the mainboard menu along with the ROM-chip size. - Move the CBFS_SIZE definition up in src/kconfig - Move the Mainboard Menu markers out of src/mainboard/kconfig into src/Kconfig so CBFS_SIZE can live in the mainboard menu. - Add a long list setting default values to do what the chipset directories were previously defaulting the values to. This will be trimmed down in a following patch that creates a common set of IFD routines. (Who knew that kconfig supported line wrapping?) - Update the help text. Change-Id: I2b9eb5a6f7d543f57d9f3b9d0aa44a5462e8b718 Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: http://review.coreboot.org/10610 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
633886719e
commit
026e4dc3ff
33
src/Kconfig
33
src/Kconfig
|
@ -332,8 +332,31 @@ endmenu
|
|||
|
||||
source "src/acpi/Kconfig"
|
||||
|
||||
menu "Mainboard"
|
||||
|
||||
source "src/mainboard/Kconfig"
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000 if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_SANDYBRIDGE || \
|
||||
NORTHBRIDGE_INTEL_IVYBRIDGE || NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE || \
|
||||
NORTHBRIDGE_INTEL_SANDYBRIDGE_NATIVE || NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE || \
|
||||
NORTHBRIDGE_INTEL_FSP_IVYBRIDGE || NORTHBRIDGE_INTEL_HASWELL || \
|
||||
NORTHBRIDGE_INTEL_NEHALEM || SOC_INTEL_BAYTRAIL || SOC_INTEL_BRASWELL || \
|
||||
SOC_INTEL_BROADWELL
|
||||
default 0x200000 if SOC_INTEL_FSP_BAYTRAIL
|
||||
default ROM_SIZE
|
||||
help
|
||||
This is the part of the ROM actually managed by CBFS, located at the
|
||||
end of the ROM (passed through cbfstool -o) on x86 and at at the start
|
||||
of the ROM (passed through cbfstool -s) everywhere else. It defaults
|
||||
to span the whole ROM on all but Intel systems that use an Intel Firmware
|
||||
Descriptor. It can be overridden to make coreboot live alongside other
|
||||
components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE
|
||||
binaries.
|
||||
|
||||
endmenu
|
||||
|
||||
config SYSTEM_TYPE_LAPTOP
|
||||
default n
|
||||
bool
|
||||
|
@ -482,16 +505,6 @@ config IOAPIC
|
|||
bool
|
||||
default n
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default ROM_SIZE
|
||||
help
|
||||
This is the part of the ROM actually managed by CBFS, located at the
|
||||
end of the ROM (passed through cbfstool -o) on x86 and at at the start
|
||||
of the ROM (passed through cbfstool -s) everywhere else. Defaults to
|
||||
span the whole ROM but can be overwritten to make coreboot live
|
||||
alongside other components (like ChromeOS's vboot/FMAP).
|
||||
|
||||
config CACHE_ROM_SIZE_OVERRIDE
|
||||
hex
|
||||
default 0
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
menu "Mainboard"
|
||||
|
||||
choice
|
||||
prompt "Mainboard vendor"
|
||||
default VENDOR_EMULATION
|
||||
|
@ -147,5 +145,3 @@ config ENABLE_POWER_BUTTON
|
|||
config ENABLE_POWER_BUTTON
|
||||
def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
|
||||
def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
|
||||
|
||||
endmenu
|
||||
|
|
|
@ -40,17 +40,6 @@ config VGA_BIOS_ID
|
|||
0x80860102, 0x8086010a, 0x80860112, 0x80860116
|
||||
0x80860122, 0x80860126, 0x80860166
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Sandybridge and Ivybridge systems the firmware image may
|
||||
have to store a lot more than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
This option specifies the maximum size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
# Ivybridge Specific FSP Kconfig
|
||||
source src/northbridge/intel/fsp_sandybridge/fsp/Kconfig
|
||||
|
||||
|
|
|
@ -36,17 +36,6 @@ config BOOTBLOCK_NORTHBRIDGE_INIT
|
|||
string
|
||||
default "northbridge/intel/gm45/bootblock.c"
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On GM45 systems the firmware image may
|
||||
store a lot more than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config VGA_BIOS_ID
|
||||
string
|
||||
default "8086,2a42"
|
||||
|
|
|
@ -88,18 +88,6 @@ config MRC_FILE
|
|||
The path and filename of the file to use as System Agent
|
||||
binary.
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Haswell systems the firmware image has to store a lot more
|
||||
than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
- MRC cache information
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config PRE_GRAPHICS_DELAY
|
||||
int "Graphics initialization delay in ms"
|
||||
default 0
|
||||
|
|
|
@ -49,15 +49,4 @@ config TRAINING_CACHE_SIZE
|
|||
hex
|
||||
default 0x10000
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Nehalem systems the firmware image has to
|
||||
store a lot more than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
endif
|
||||
|
|
|
@ -110,16 +110,4 @@ config MRC_FILE
|
|||
The path and filename of the file to use as System Agent
|
||||
binary.
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Sandybridge and Ivybridge systems the firmware image has to
|
||||
store a lot more than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
- MRC cache information
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
endif
|
||||
|
|
|
@ -146,18 +146,6 @@ config RESET_ON_INVALID_RAMSTAGE_CACHE
|
|||
the system will reset otherwise the ramstage will be reloaded from
|
||||
cbfs.
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Bay Trail systems the firmware image has to store a lot more
|
||||
than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
- MRC cache information
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config ENABLE_BUILTIN_COM1
|
||||
bool "Enable builtin COM1 Serial Port"
|
||||
default n
|
||||
|
|
|
@ -147,18 +147,6 @@ config RESET_ON_INVALID_RAMSTAGE_CACHE
|
|||
the system will reset otherwise the ramstage will be reloaded from
|
||||
cbfs.
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
On Bay Trail systems the firmware image has to store a lot more
|
||||
than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
- MRC cache information
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config ENABLE_BUILTIN_COM1
|
||||
bool "Enable builtin COM1 Serial Port"
|
||||
default n
|
||||
|
|
|
@ -140,17 +140,6 @@ config CACHE_MRC_SETTINGS
|
|||
|
||||
endif # HAVE_MRC
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default 0x100000
|
||||
help
|
||||
The firmware image has to store more than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Management Engine firmware
|
||||
- MRC cache information
|
||||
This option allows to limit the size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config PRE_GRAPHICS_DELAY
|
||||
int "Graphics initialization delay in ms"
|
||||
default 0
|
||||
|
|
|
@ -95,17 +95,6 @@ config CPU_MICROCODE_CBFS_LOC
|
|||
hex
|
||||
default 0xfff10040
|
||||
|
||||
config CBFS_SIZE
|
||||
hex
|
||||
default 0x200000
|
||||
help
|
||||
On Bay Trail systems the firmware image has to store a lot more
|
||||
than just coreboot, including:
|
||||
- a firmware descriptor
|
||||
- Intel Trusted Execution Engine firmware
|
||||
This option specifies the maximum size of the CBFS portion in the
|
||||
firmware image.
|
||||
|
||||
config INCLUDE_ME
|
||||
bool "Include the TXE"
|
||||
default n
|
||||
|
|
|
@ -13,14 +13,6 @@ config SOC_QC_IPQ806X
|
|||
|
||||
if SOC_QC_IPQ806X
|
||||
|
||||
config CBFS_SIZE
|
||||
hex "Size of CBFS filesystem in ROM"
|
||||
default ROM_SIZE
|
||||
help
|
||||
CBFS size needs to match the size of memory allocated to the
|
||||
coreboot blob elsewhere in the system. Make sure this config option
|
||||
is fine tuned in the board config file.
|
||||
|
||||
config MBN_ENCAPSULATION
|
||||
depends on USE_BLOBS
|
||||
bool "bootblock encapsulation for ipq8064"
|
||||
|
|
Loading…
Reference in New Issue