From 14706fa4a9fe149d0e236ca7dc81ea4a6f96846e Mon Sep 17 00:00:00 2001 From: Sam McNally Date: Thu, 1 Dec 2022 18:39:42 +1100 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4066244 Tested-by: Frank Wu Reviewed-by: Edward O'Callaghan Reviewed-by: Frank Wu Reviewed-by: Yu-Ping Wu --- futility/updater.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1