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

TEST=After merging some EC update test changes, run: -a "new_ec=ec_autest_image.bin" firmware_UpdateECBin/control$

Change-Id: Ic05a53b8b8040016991259f9d9ff8a9eb9a1ba49
Commit-Ready: Tom Wai-Hong Tam <>
Reviewed-by: Tom Wai-Hong Tam <>
Tested-by: Tom Wai-Hong Tam <>
1 file changed