timestamp: Replace TS_ROMSTAGE_END conditional

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 <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63432
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2022-04-07 07:58:52 +03:00
parent f4543e7426
commit f4b8538701
1 changed files with 2 additions and 3 deletions

View File

@ -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);
/*