diff options
author | Sam McNally <sammc@chromium.org> | 2022-02-09 23:49:05 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-07 06:45:12 +0000 |
commit | 6d750321ccf872984ccd8f48940d3f91f207ab2f (patch) | |
tree | 73cf3834f6e31e9425c708667207ea2eed93162d /tests/vboot_api_kernel4_tests.c | |
parent | 894f6109f13f65b7573365f5c3938fbb5d4b66c5 (diff) | |
download | vboot-factory-brya-14517.B.tar.gz |
futility/updater: Ignore preserve_me quirks for non-host programmers.factory-brya-14517.B
The preserve_me quirk allows avoiding modifying the ME region while it
may be running. Its apply function attempts to skip itself when not
flashing the OS-bundled firmware by checking for whether an archive is
set, but this doesn't work since in the absence of an actual archive
file, a filesystem archive implementation is used instead.
While flashing over a non-host programmer the ME is not running and
therefore it is safe to update the ME region.
Add unit test cases for the preserve_me quirk applying successfully when
using the default host programmer and being skipped when using another
programmer.
BUG=b:213706510,b:222657076
TEST=futility update -p dummy... with preserve_me quirk skips the quirk;
chromeos-firmwareupdate with a preserve_me quirk applies the quirk
BRANCH=none
Change-Id: Ie5578c9b3cf7eba55626bb931589bf360fe28269
Signed-off-by: Sam McNally <sammc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3450060
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
(cherry picked from commit a8f973b82171f933e5877c6cc65b0c2bc510510a)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3506044
Reviewed-by: Ricky Chang <rickytlchang@chromium.org>
Commit-Queue: Ricky Chang <rickytlchang@chromium.org>
Tested-by: Ricky Chang <rickytlchang@chromium.org>
Diffstat (limited to 'tests/vboot_api_kernel4_tests.c')
0 files changed, 0 insertions, 0 deletions