summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2022-12-01 18:39:42 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-07 14:10:00 +0000
commit14706fa4a9fe149d0e236ca7dc81ea4a6f96846e (patch)
tree48d701211caeeaa8b9d2a9606fbf93ecbcf7024f
parent23f65a290112a0fd14efb760394c99196994d974 (diff)
downloadvboot-14706fa4a9fe149d0e236ca7dc81ea4a6f96846e.tar.gz
futility: updater: Skip loading non-host images with --emulation passed
When using --emulation with a bundled updater, the presence of EC or PD firmware images causes the check_single_image condition to fail, since EC and PD programmers are not supported by --emulation. Treat --emulation the same as --host_only for deciding what images to load. BUG=b:259347347 TEST=firmware_UpdaterModes on xivu BRANCH=None Change-Id: I07549e01107edff26b66d5afe5c0e5b325ff996f Signed-off-by: Sam McNally <sammc@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4066244 Tested-by: Frank Wu <frank_wu@compal.corp-partner.google.com> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Frank Wu <frank_wu@compal.corp-partner.google.com> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
-rw-r--r--futility/updater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater.c b/futility/updater.c
index 6129b73c..941ef125 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -1337,7 +1337,7 @@ static int updater_load_images(struct updater_config *cfg,
if (!errorcnt)
errorcnt += updater_setup_quirks(cfg, arg);
}
- if (arg->host_only)
+ if (arg->host_only || arg->emulation)
return errorcnt;
if (!cfg->ec_image.data && ec_image)