From ee464b17ced5a4e85327bb11b42a663213393903 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Fri, 2 Oct 2015 18:01:18 -0700 Subject: console: Simplify bootblock console Kconfig selection logic Instead of depending BOOTBLOCK_CONSOLE on a set of architectures, allow the arch or platform to specify whether it can provide a C environment. This simplifies the selection logic. Change-Id: Ia3e41796d9aea197cee0a073acce63761823c3aa Signed-off-by: Alexandru Gagniuc Reviewed-on: https://review.coreboot.org/12871 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index 6a0209dad3..f09e5061a2 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -271,6 +271,12 @@ config BOOTBLOCK_SOURCE default "bootblock_simple.c" if BOOTBLOCK_SIMPLE default "bootblock_normal.c" if BOOTBLOCK_NORMAL +# To be selected by arch or platform if a C environment is available during the +# bootblock. Normally this signifies availability of RW memory (e.g. SRAM). +config C_ENVIRONMENT_BOOTBLOCK + bool + default n + config SKIP_MAX_REBOOT_CNT_CLEAR bool "Do not clear reboot count after successful boot" default n -- cgit v1.2.3