[coreboot-gerrit] New patch to review for coreboot: vboot: Install files into FW_MAIN_A and FW_MAIN_B unless they're for RO
Patrick Georgi (pgeorgi@google.com)
gerrit at coreboot.org
Wed Jan 20 15:56:00 CET 2016
Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13060
-gerrit
commit 68e3ef14b9099a9c162cc2199e356e9d4164bf7c
Author: Patrick Georgi <pgeorgi at chromium.org>
Date: Wed Jan 20 15:54:31 2016 +0100
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 at chromium.org>
---
Makefile.inc | 1 +
src/vendorcode/google/chromeos/vboot2/Makefile.inc | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/Makefile.inc b/Makefile.inc
index 9e303d8..738df49 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -112,6 +112,7 @@ spc :=
spc +=
$(spc) :=
$(spc) +=
+comma := ,
# files-in-dir-recursive,dir,files
files-in-dir-recursive=$(filter $(1)%,$(2))
diff --git a/src/vendorcode/google/chromeos/vboot2/Makefile.inc b/src/vendorcode/google/chromeos/vboot2/Makefile.inc
index fdb0d4e..32f69c3 100644
--- a/src/vendorcode/google/chromeos/vboot2/Makefile.inc
+++ b/src/vendorcode/google/chromeos/vboot2/Makefile.inc
@@ -85,3 +85,12 @@ 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 = -r $(subst $(spc),$(comma),$(sort \
+ $(if $(filter \
+ %/romstage \
+ %/verstage \
+ ,$(1)),COREBOOT,COREBOOT FW_MAIN_A FW_MAIN_B)))
More information about the coreboot-gerrit
mailing list