summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2023-01-20 16:37:02 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-29 08:18:54 +0000
commit40d496285f59e35c9bf479a6cd539060e9d513a4 (patch)
treebac37476906e613556c049f3f8a943882afc64d3
parent8119617844689382e3bf986ea6f417797fef663a (diff)
downloadvboot-40d496285f59e35c9bf479a6cd539060e9d513a4.tar.gz
futility: updater: Pass bus=prog for dummy programmer for --emulate
Probing all buses adds 200ms per flashrom interaction in tests using the dummy programmer. BUG=b:266014935 TEST=unit tests BRANCH=None Change-Id: I83c0c995bfdf057849c2d1f5cc76fa36fdc31407 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4193608 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380961 Auto-Submit: Phoebe Wang <phoebewang@chromium.org> Tested-by: Phoebe Wang <phoebewang@chromium.org> Reviewed-by: Cheng Yueh <cyueh@chromium.org> Commit-Queue: Cheng Yueh <cyueh@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 c0a500fc..8a5a0be5 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -1561,7 +1561,7 @@ int updater_setup_config(struct updater_config *cfg,
/* Store ownership of the dummy programmer string in
cfg->emulation_programmer. */
ASPRINTF(&cfg->emulation_programmer,
- "dummy:emulate=VARIABLE_SIZE,size=%d,image=%s",
+ "dummy:emulate=VARIABLE_SIZE,size=%d,image=%s,bus=prog",
(int)statbuf.st_size, arg->emulation);
cfg->image.programmer = cfg->emulation_programmer;