Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34913 )
Change subject: rules: Add ability to disable ENV_CACHE_AS_RAM ......................................................................
rules: Add ability to disable ENV_CACHE_AS_RAM
Change-Id: I3acace92b39093cfb51f71f0dd39582c1e3c8c9a Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/Kconfig M src/include/rules.h 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/34913/1
diff --git a/src/Kconfig b/src/Kconfig index f051216..1bcca23 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -159,6 +159,12 @@ Select this option if the soc implements custom assembly entry code for early stages.
+config NO_ENV_CACHE_AS_RAM + bool + depends on ARCH_X86 + help + Select this option if the soc doesn't use ENV_CACHE_AS_RAM. + config COMPRESS_BOOTBLOCK bool depends on HAVE_BOOTBLOCK diff --git a/src/include/rules.h b/src/include/rules.h index 10cd715..cda13bb 100644 --- a/src/include/rules.h +++ b/src/include/rules.h @@ -284,7 +284,7 @@ /* x86 specific. Indicates that the current stage is running with cache-as-ram * enabled from the beginning of the stage in C code. */ #if defined(__PRE_RAM__) -#define ENV_CACHE_AS_RAM CONFIG(ARCH_X86) +#define ENV_CACHE_AS_RAM (CONFIG(ARCH_X86) && !CONFIG(NO_ENV_CACHE_AS_RAM)) #else #define ENV_CACHE_AS_RAM 0 #endif