swap_ec_rw: Support giving a raw EC RW image

For the EC supporting only a single firmware copy, their EC image
has no FMAP and no traditional sections, like EC_RW, RW_FWID.

Add support to accept a raw EC RW image. The version file can be
optionally added to the CBFS.

And make the EC hash always recalculated.

BUG=b:388903762
TEST=make runtestscripts
BRANCH=none

Change-Id: Id8e96832c0607b700b17e86e3402cd4856cf5b37
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/6489288
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Commit-Queue: ChromeOS Auto Retry <chromeos-auto-retry@chromeos-bot.iam.gserviceaccount.com>
2 files changed