From 447240808c62cb877e343c40802a35d01ed198fb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 16 Mar 2015 11:47:45 -0500 Subject: lib: Add Kconfig option to enable/disable auto fallback control Under certain conditions, e.g. automated testing, it is useful to have the payload (e.g. Linux) reset the reboot_bits CMOS value. This allows automated recovery in the case of coreboot starting properly but the payload failing to start due to bad configuration data provided by the coreboot image under test. Signed-off-by: Timothy Pearson Change-Id: Ifc8f565f8292941d90b2e520cc9c5993b41e9cdd Reviewed-on: http://review.coreboot.org/8698 Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index a0758bcf22..6cabc70e2f 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -236,6 +236,14 @@ config BOOTBLOCK_SOURCE default "bootblock_simple.c" if BOOTBLOCK_SIMPLE default "bootblock_normal.c" if BOOTBLOCK_NORMAL +config SKIP_MAX_REBOOT_CNT_CLEAR + bool "Do not clear reboot count after successful boot" + default n + depends on EXPERT + help + Do not clear the reboot count immediately after successful boot. + Set to allow the payload to control normal/fallback image recovery. + config UPDATE_IMAGE bool "Update existing coreboot.rom image" default n -- cgit v1.2.3