diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2016-01-20 15:54:31 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-01-21 19:41:20 +0100 |
commit | c8d4abd8ba3f2ad841dda13278bd55a8e78db800 (patch) | |
tree | 14b5739cbc224b1a7730a16065cb0012aab9efe8 /src/vendorcode/google/chromeos/vboot2 | |
parent | 5d7ab39024705d872221aab126b42e743674d672 (diff) |
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>
Diffstat (limited to 'src/vendorcode/google/chromeos/vboot2')
-rw-r--r-- | src/vendorcode/google/chromeos/vboot2/Makefile.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/vboot2/Makefile.inc b/src/vendorcode/google/chromeos/vboot2/Makefile.inc index fdb0d4e954..34f1f745dc 100644 --- a/src/vendorcode/google/chromeos/vboot2/Makefile.inc +++ b/src/vendorcode/google/chromeos/vboot2/Makefile.inc @@ -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))) |