From f4b8538701de06fca1b91a8d47c3ebd6947e8f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 7 Apr 2022 07:58:52 +0300 Subject: [PATCH] timestamp: Replace TS_ROMSTAGE_END conditional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If a combo bootblock+romstage was created, it may not have ENV_ROMSTAGE set, while the timestamp of (embedded) romstage should remain in its place. Change-Id: I713732a291b6a6c0d8fcb23266f765fd33816db8 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/63432 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/lib/prog_loaders.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index 18d54f50eb..0b68805bc0 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -87,11 +87,10 @@ void run_ramstage(void) struct prog ramstage = PROG_INIT(PROG_RAMSTAGE, CONFIG_CBFS_PREFIX "/ramstage"); + /* Call "end of romstage" here if postcar stage doesn't exist */ if (ENV_POSTCAR) timestamp_add_now(TS_POSTCAR_END); - - /* Call "end of romstage" here if postcar stage doesn't exist */ - if (ENV_ROMSTAGE) + else timestamp_add_now(TS_ROMSTAGE_END); /*