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.

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>
(cherry picked from commit b064d989306db447ddc52bd7f1e19ba7923cac08)
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Change-Id: Ic27472aa1a197f9175ad23935c58e588b6863fc0
Reviewed-on: https://chromium-review.googlesource.com/322856
1 file changed