5e6c30bc42
This introduces a Kconfig option for compiling coreinfo with LTO. This option can be used independently of LTO in libpayload, though will benefit most if that is enabled as well. If both are enabled, the final size of coreinfo.elf is reduced from 95 KiB to 92 KiB. Tested in QEMU and on Thinkpad T500. Change-Id: I6feacdb911b52b946869bff369e03dcf72897c9f Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38293 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
108 lines
2.5 KiB
Text
108 lines
2.5 KiB
Text
## SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
# see http://lxr.linux.no/source/Documentation/kbuild/kconfig-language.txt.
|
|
#
|
|
|
|
mainmenu "coreinfo Configuration"
|
|
|
|
menu "General settings"
|
|
|
|
# TODO: Needs changes in coreinfo, won't update without keypress currently.
|
|
config SHOW_DATE_TIME
|
|
bool "Show current date/time in the menu"
|
|
default y
|
|
help
|
|
Show the current date and time in the lower-right corner of
|
|
the coreinfo menu.
|
|
|
|
This option will increase the ELF file size by ca. 250 bytes.
|
|
|
|
config PAYLOAD_INFO_NAME
|
|
string "Payload name"
|
|
default "coreinfo"
|
|
help
|
|
The name of this payload for use in (e.g.) Bayou.
|
|
|
|
config PAYLOAD_INFO_LISTNAME
|
|
string "Payload menu entry name"
|
|
default "System Information"
|
|
help
|
|
The name of this payload's menu entry for use in (e.g.) Bayou.
|
|
|
|
config PAYLOAD_INFO_DESC
|
|
string "Payload description"
|
|
default "Display information about the system"
|
|
help
|
|
The description of this payload for use in (e.g.) Bayou.
|
|
|
|
config PAYLOAD_INFO_VERSION
|
|
string "Payload version"
|
|
default "0.1"
|
|
help
|
|
The version number of this payload.
|
|
|
|
config LTO
|
|
bool "Use link time optimization (LTO)"
|
|
default n
|
|
help
|
|
Compile with link time optimization. This can often decrease the
|
|
final binary size, but may increase compilation time. This option
|
|
is most effective when LTO is also enabled in libpayload, which
|
|
is done separately.
|
|
|
|
endmenu
|
|
|
|
menu "Modules"
|
|
|
|
config MODULE_COREBOOT
|
|
bool "Enable the coreboot module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 2250 bytes.
|
|
|
|
config MODULE_MULTIBOOT
|
|
bool "Enable the multiboot module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 1790 bytes.
|
|
|
|
config MODULE_CPUINFO
|
|
bool "Enable the cpuinfo module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 2650 bytes.
|
|
|
|
config MODULE_PCI
|
|
bool "Enable the PCI info module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 1750 bytes.
|
|
|
|
config MODULE_NVRAM
|
|
bool "Enable the NVRAM dump module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 350 bytes.
|
|
|
|
config MODULE_BOOTLOG
|
|
bool "Enable the coreboot bootlog module"
|
|
default y
|
|
|
|
config MODULE_RAMDUMP
|
|
bool "Enable the RAM dump module"
|
|
default y
|
|
|
|
config MODULE_CBFS
|
|
bool "Enable the coreboot CBFS module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 1440 bytes.
|
|
|
|
config MODULE_TIMESTAMPS
|
|
bool "Enable the coreboot timestamps module"
|
|
default y
|
|
help
|
|
This option will increase the ELF file size by ca. 4200 bytes.
|
|
|
|
endmenu
|