dump_fmap: Add flash_ec format

Add a sub command to display info in format compatible with flash_ec
script.

The output in flash_ec format contains preserve status of each
section.

More information about section in output will be added
based on need of flash_ec script moving forward and changes should
be made on flash_ec end in parallel to avoid breakage of script.

BRANCH=none
BUG=b:267804768
TEST=dump_fmap build/zephyr/rex/output/ec.bin -x CBI -e

Change-Id: I465f365542f89fedc7114341e04c26b53122011f
Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4538201
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Julius Werner <jwerner@chromium.org>
4 files changed