cros_bundle_firmware: Pollute EC RO binary FMAP signature

We don't want to have two FMAP signatures in the image. At present
the EC RO binary includes an FMAP signature since for write-enabled
devices we still use flashrom to perform the EC RO update.

This is a temporary situation since s/w sync will eventually do the
RO bin image - see example CL here:

https://gerrit.chromium.org/gerrit/#/c/30866/

For now, change the fmap signature on this blob to __fMAP__ for this
blob only.

BUG=chrome-os-partner:13143
BRANCH=snow,link
TEST=manual
Check flashrom's fmap.h and see the signature:

Run 'cros_bundle_firmware -b daisy -d exynos5250-snow -O out'

Use ghex to look at out/updated-ecro.bin and see that it does not
include __FMAP__ anymore (the 'F' is changed to 'f').

Same with image:

$ strings out/image.bin |grep -i __fmap__
__fMAP__
__FMAP__

(the last one is the real FMAP)

Change-Id: I58789684184123bb2f914cbf2a28fc0199c5ddb2
Reviewed-on: https://gerrit.chromium.org/gerrit/31612
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit 693b40ff91f27301091538098a2c366ce5849e18)
Reviewed-on: https://gerrit.chromium.org/gerrit/31757
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
1 file changed