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

CQ-DEPEND=CL:237533, CL:237561, CL:237572
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 <>
Reviewed-by: Aaron Durbin <>
1 file changed