summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2022-10-18 20:34:42 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-17 09:24:41 +0000
commit5b6985240bc5e673ec2a744bedda7e22583cea77 (patch)
tree788d562a3396094daf65e3daa5f065c2d0dba5ee /host
parent69d6d85c20910cc1d07752c9468f7822d421339e (diff)
downloadvboot-5b6985240bc5e673ec2a744bedda7e22583cea77.tar.gz
futility: updater: Use flashrom dummy programmer to implement --emulate
futility update --emulate and flashrom's dummy programmer serve similar purposes - both provide support for using a file instead of a real ROM. The current --emulate implementation involves special-casing before interacting with flashrom and pre-filling in the current image contents; an appropriately-configured dummy programmer and unmodified flashrom interactions could accomplish the same outcome with a more centralised handling of --emulate. Other --emulate interactions mock out non-flashrom interactions, so need to continue handling --emulate specially for now. Switch --emulate to use the dummy programmer. Add an extra field to store the original programmer option for deciding on whether the apply the preserve_me quirk. BUG=b:253966060 TEST=unit tests BRANCH=None Signed-off-by: Sam McNally <sammc@chromium.org> Change-Id: I687749523f54edcb9dd41cfc85614949b9d6607a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3965582 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'host')
0 files changed, 0 insertions, 0 deletions