prog_loader: Change legacy_romstage_select_and_load() to return cb_err

This is passing through a cb_err from cbfs_prog_stage_load(), so it
should be declared to return that as well.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I5510d05953fe8c0e2cb511f01f862b66ced154ae
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62656
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Julius Werner
2022-03-07 18:54:47 -08:00
parent d5f45d0a9e
commit 797a110856
3 changed files with 6 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ void run_romstage(void)
timestamp_add_now(TS_COPYROM_START);
if (ENV_X86 && CONFIG(BOOTBLOCK_NORMAL)) {
if (legacy_romstage_select_and_load(&romstage))
if (legacy_romstage_select_and_load(&romstage) != CB_SUCCESS)
goto fail;
} else {
if (cbfs_prog_stage_load(&romstage))