diff options
author | Martin Roth <martinroth@google.com> | 2017-10-05 13:53:16 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-10-12 18:33:42 +0000 |
commit | bbd5ee4187dd5b85a8ccf6de28b24a70c0343174 (patch) | |
tree | 68c9d87e0379a91b6822e9fb81dd9b0304dcbb54 | |
parent | 630b644cecf0cb3ac3dacc8b0854a92d0ac58598 (diff) | |
download | coreboot-bbd5ee4187dd5b85a8ccf6de28b24a70c0343174.tar.xz |
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@google.com>
Reviewed-on: https://review.coreboot.org/21899
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/vboot/Kconfig | 7 | ||||
-rw-r--r-- | src/vboot/Makefile.inc | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/vboot/Kconfig b/src/vboot/Kconfig index f48c82d5a6..d5b5de291e 100644 --- a/src/vboot/Kconfig +++ b/src/vboot/Kconfig @@ -221,6 +221,13 @@ config VBOOT_FWID_VERSION 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 3128fae5b0..75ecff3b21 100644 --- a/src/vboot/Makefile.inc +++ b/src/vboot/Makefile.inc @@ -152,6 +152,7 @@ regions-for-file = $(subst $(spc),$(comma),$(sort \ 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)) |