bundle_firmware: factor out cbfs-files node property to support it in RO

There was no way for fine-grained manipulation of the RO CBFS region
through the cbfs-files { } mechanism. Now it can be used in all CBFS
regions we support in bundle_firmware.

BUG=none
BRANCH=tot
TEST=Add a cbfs-files node with actions to ro-boot and see that it
modifies RO but not the RW slots. Add such a node to RW regions and see
that they're still processed.

Change-Id: Ic27472aa1a197f9175ad23935c58e588b6863fc0
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/321941
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
1 file changed