| ## |
| ## |
| ## SPDX-License-Identifier: GPL-2.0-only |
| |
| config ELOG |
| bool "Support for flash based event log" |
| default n |
| depends on BOOT_DEVICE_SUPPORTS_WRITES |
| help |
| Enable support for flash based event logging. |
| |
| if ELOG |
| |
| config ELOG_DEBUG |
| bool "Enable debug output for event logging" |
| default n |
| |
| config ELOG_CBMEM |
| bool "Store a copy of ELOG in CBMEM" |
| default n |
| help |
| This option will have ELOG store a copy of the flash event log |
| in a CBMEM region and export that address in SMBIOS to the OS. |
| This is useful if the ELOG location is not in memory mapped flash, |
| but it means that events added at runtime via the SMI handler |
| will not be reflected in the CBMEM copy of the log. |
| |
| config ELOG_PRERAM |
| bool |
| default n |
| help |
| This option will enable event logging from the preram stage. |
| |
| config ELOG_GSMI |
| depends on HAVE_SMI_HANDLER |
| bool "SMI interface to write and clear event log" |
| select SPI_FLASH_SMM if BOOT_DEVICE_SPI_FLASH_RW_NOMMAP |
| default n |
| help |
| This interface is compatible with the linux kernel driver |
| available with CONFIG_GOOGLE_GSMI and can be used to write |
| kernel reset/shutdown messages to the event log. |
| |
| config ELOG_BOOT_COUNT |
| bool "Maintain a monotonic boot number in CMOS" |
| default n |
| help |
| Store a monotonic boot number in CMOS and provide an interface |
| to read the current value and increment the counter. This boot |
| counter will be logged as part of the System Boot event. |
| |
| config ELOG_BOOT_COUNT_CMOS_OFFSET |
| depends on ELOG_BOOT_COUNT && !USE_OPTION_TABLE |
| int "Offset in CMOS to store the boot count" |
| default 0 |
| help |
| This value must be greater than 16 bytes so as not to interfere |
| with the standard RTC region. Requires 8 bytes. |
| |
| endif |