saft: Add EC binary getter and setter methods on flashrom_handler

According to the EC Software Sync design, The EC binary is now embedded
in the BIOS image. On AP startup, AP verifies the EC by comparing the
hash of the current EC with the hash of the embedded EC image.

For testing this design, some FAFTs need to update the EC binary. This
change add the support of getting and setting the EC binary on the BIOS
image.

BUG=chrome-os-partner:12997
TEST=After merging some EC update test changes, run:
run_remote_test.sh -a "new_ec=ec_autest_image.bin" firmware_UpdateECBin/control$

Change-Id: Ic05a53b8b8040016991259f9d9ff8a9eb9a1ba49
Reviewed-on: https://gerrit.chromium.org/gerrit/31325
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
1 file changed