[coreboot-gerrit] Change in coreboot[master]: vboot: Exclude platform specific files from RW cbfs

Martin Roth (Code Review) gerrit at coreboot.org
Thu Oct 5 22:14:52 CEST 2017


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/21899


Change subject: vboot: Exclude platform specific files from RW cbfs
......................................................................

vboot: Exclude platform specific files from RW cbfs

Add a Kconfig option to allow platforms to exclude specific files
from being copied from RO into RW sections.

BUG=b:65484600
TEST=Exclude apu/amdfw from the RW cbfs sections

Change-Id: I7723b63392c1620b75ceb6d8e25fe1ce2c75cf18
Signed-off-by: Martin Roth <martinroth at google.com>
---
M src/vboot/Kconfig
M src/vboot/Makefile.inc
2 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/21899/1

diff --git a/src/vboot/Kconfig b/src/vboot/Kconfig
index f48c82d..d5b5de2 100644
--- a/src/vboot/Kconfig
+++ b/src/vboot/Kconfig
@@ -221,6 +221,13 @@
 	  This is the second part of the FWID written to various regions of a
 	  vboot firmware image to identify its version.
 
+config RO_REGION_ONLY
+	string "Additional files that should not be copied to RW"
+	default ""
+	help
+	  Add a space delimited list of filenames that should only be in the
+	  RO section.
+
 menu "GBB configuration"
 
 config GBB_HWID
diff --git a/src/vboot/Makefile.inc b/src/vboot/Makefile.inc
index 0d6ce57..bc4aefb 100644
--- a/src/vboot/Makefile.inc
+++ b/src/vboot/Makefile.inc
@@ -152,6 +152,7 @@
 		font.bin \
 		vbgfx.bin \
 		rmu.bin \
+		$(call strip_quotes,$(CONFIG_RO_REGION_ONLY)) \
 		,$(1)),COREBOOT,COREBOOT FW_MAIN_A FW_MAIN_B)))
 
 CONFIG_GBB_HWID := $(call strip_quotes,$(CONFIG_GBB_HWID))

-- 
To view, visit https://review.coreboot.org/21899
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7723b63392c1620b75ceb6d8e25fe1ce2c75cf18
Gerrit-Change-Number: 21899
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171005/e382271e/attachment-0001.html>


More information about the coreboot-gerrit mailing list