summaryrefslogtreecommitdiff
path: root/futility/updater_quirks.c
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2022-03-18 14:19:16 +0800
committerCommit Bot <commit-bot@chromium.org>2022-03-18 20:43:53 +0000
commit26187f1d4e2534fe9d2fe90e7ce82af23ada1866 (patch)
tree8a9327ae1d77f03c9532a89185b4e338c4e40907 /futility/updater_quirks.c
parent67d21be99c7ce35bc0580c4fd4e062da90bd1cbb (diff)
downloadvboot-stabilize-voshyr-14637.B.tar.gz
The new quirk will allow the updater to easily switch the underlying flash driver between the libflashrom and the external flashrom. BUG=None TEST=build and run test BRANCH=None Change-Id: I5b9da373b1e22a948e04d844973a5683adffe63c Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3534489 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'futility/updater_quirks.c')
-rw-r--r--futility/updater_quirks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/futility/updater_quirks.c b/futility/updater_quirks.c
index 8d6114bf..73b7c2fd 100644
--- a/futility/updater_quirks.c
+++ b/futility/updater_quirks.c
@@ -521,6 +521,11 @@ void updater_register_quirks(struct updater_config *cfg)
quirks->name = "extra_retries";
quirks->help = "Extra retries when writing to system firmware.";
quirks->apply = NULL; /* Simple config. */
+
+ quirks = &cfg->quirks[QUIRK_EXTERNAL_FLASHROM];
+ quirks->name = "external_flashrom";
+ quirks->help = "Use external flashrom to access the system firmware.";
+ quirks->apply = NULL; /* Simple config. */
}
/*