[coreboot-gerrit] Change in coreboot[master]: security/vboot: Split fwid.region build target
Raul Rangel (Code Review)
gerrit at coreboot.org
Tue Aug 7 00:13:24 CEST 2018
Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/27884
Change subject: security/vboot: Split fwid.region build target
......................................................................
security/vboot: Split fwid.region build target
Add the ability to specify the fwid version via a file instead of
via config. This makes it so when doing an incremental build all
objects are not invalidated when bumping the fwid.
The coreboot ebuild will create this file to pass the latest version.
BUG=b:112267918
TEST=ran dmidecide -t 0 and verified version was present
Change-Id: I955106efd648a75a1311f24ede46bd238d1517e0
Signed-off-by: Raul E Rangel <rrangel at chromium.org>
---
M src/security/vboot/Makefile.inc
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/27884/1
diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc
index b542425..7d40428 100644
--- a/src/security/vboot/Makefile.inc
+++ b/src/security/vboot/Makefile.inc
@@ -223,8 +223,13 @@
endif
mv $@.tmp $@
-$(obj)/fwid.region:
- printf "$(CONFIG_VBOOT_FWID_MODEL)$(CONFIG_VBOOT_FWID_VERSION)\0" > $@
+$(obj)/fwid.version:
+ echo -n "$(CONFIG_VBOOT_FWID_VERSION)" > $@
+
+$(obj)/fwid.region: $(obj)/fwid.version
+ printf "%s%s\0" \
+ "$(CONFIG_VBOOT_FWID_MODEL)" \
+ "$(file < $(obj)/fwid.version)" > $@
build_complete:: $(obj)/gbb.region $(obj)/fwid.region
@printf " WRITE GBB\n"
--
To view, visit https://review.coreboot.org/27884
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I955106efd648a75a1311f24ede46bd238d1517e0
Gerrit-Change-Number: 27884
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel at chromium.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180806/7b5efa0d/attachment-0001.html>
More information about the coreboot-gerrit
mailing list