cros_bundle_firmware: Add processing of the CBFS blob

When the blob name is defined as cbfs/<section>/<subsection>, fill the
<section>_<subsection> area in the flash map with a CBFS copy, putting
the CBFS header at the base of the section.

If --uboot or --coreboot-elf parameter was specified during
cros_bumdle_firmware invocation, add the parameter of this option as
the payload to the new CBFS instance, giving --uboot precedence over
--coreboot-elf.

CQ-DEPEND=CL:237533, CL:237561, CL:237572
BRANCH=storm
BUG=chrome-os-partner:34161
TEST=with depthcharge, coreboot and chromeos-base patches in place the
     build produces an bootable Storm firmware.

Change-Id: Iff38c9e9569bf5f7dcb9239dda0e695ab3422eaa
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/237496
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
1 file changed