futility: updater: Support --unlock_me with --mode=output

Devices using flexible EOM need to pre-flash firmware with the ME
unlocked in factory. Add support for using the --unlock_me option
together with --mode=output. This allows an unlocked firmware image to
be generated from a firmware updater containing locked firmware.

BRANCH=None
BUG=b:292897420
TEST=Extract a nissa firmware updater, run `chromeos-firmwareupdate
--mode=output --model=yaviks --unlock_me`, inspect image.bin to check
that the ME is unlocked.

Change-Id: I7ac09c4b73076bdf1160c93bd120b7fc4c628f1a
Signed-off-by: Reka Norman <rekanorman@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4719306
Commit-Queue: Reka Norman <rekanorman@chromium.org>
Tested-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
2 files changed