vboot: Install files into FW_MAIN_A and FW_MAIN_B unless they're for RO

Setup an initial rule to make use of the updatable CBFS regions in fmap.

Change-Id: I1fe1c6e7574854b735760c85590da6e297f6e687
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/13060
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi 2016-01-20 15:54:31 +01:00 committed by Patrick Georgi
parent 5d7ab39024
commit c8d4abd8ba
2 changed files with 12 additions and 0 deletions

View File

@ -112,6 +112,7 @@ spc :=
spc +=
$(spc) :=
$(spc) +=
comma := ,
# files-in-dir-recursive,dir,files
files-in-dir-recursive=$(filter $(1)%,$(2))

View File

@ -85,3 +85,14 @@ else
romstage-srcs += $(objgenerated)/libverstage.a
endif
endif # CONFIG_SEPARATE_VERSTAGE
# Define a list of files that need to be in RO only.
# All other files will be installed into RO and RW regions
# Use $(sort) to cut down on extra spaces that would be translated to commas
regions-for-file = $(subst $(spc),$(comma),$(sort \
$(if $(filter \
$(if $(filter y,$(CONFIG_VBOOT_STARTS_IN_BOOTBLOCK)),, \
%/romstage) \
mts \
%/verstage \
,$(1)),COREBOOT,COREBOOT FW_MAIN_A FW_MAIN_B)))