summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2020-10-07 14:29:38 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2020-10-08 01:22:20 +0000
commit4b5c8b554154f290d509b6db3c44f850134581b7 (patch)
treeda7363cc2c12c9604b6e5764d147f14a52704144 /src
parent0f3ef704bb8744f12d6c34b57ad7b0270070197a (diff)
rules.h: change verstage name if it starts before bootblock
VBOOT_STARTS_VEFORE_BOOTBLOCK indicates that verstage starts before bootblock. However "cbmem -1" will first try to match "bootblock starting" to find out the beginning of console for current boot. Change ENV_STRING for verstage to "verstage-before-bootblock" in the case and add regex in cbmem utility to grab it. BUG=b:159220781 TEST=flash and boot, check `cbmem -1` BRANCH=zork Signed-off-by: Kangheui Won <khwon@chromium.org> Change-Id: Ica38f6bfeb05605caadac208e790fd072b352732 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46060 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/rules.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/rules.h b/src/include/rules.h
index 39836b11bf..d30b2b896a 100644
--- a/src/include/rules.h
+++ b/src/include/rules.h
@@ -78,7 +78,11 @@
#define ENV_RMODULE 0
#define ENV_POSTCAR 0
#define ENV_LIBAGESA 0
+#if CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)
+#define ENV_STRING "verstage-before-bootblock"
+#else
#define ENV_STRING "verstage"
+#endif
#elif defined(__RAMSTAGE__)
#define ENV_DECOMPRESSOR 0