<p>Philipp Deppenwiese has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22102">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">security/vboot: Add weak method for vboot2, fix missing select<br><br>In order to make VBOOT2 independent from the CHROMEOS<br>kconfig option a weak method for get_write_protect_state<br>is required.<br><br>Also timestamps select was missing for the vboot<br>kconfig option.<br><br>Change-Id: I3b1555bd93e1605e04d5c3ea6a752eb1459e426e<br>Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org><br>---<br>M src/security/vboot/Kconfig<br>M src/security/vboot/bootmode.c<br>2 files changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/22102/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig<br>index d5b5de2..045f446 100644<br>--- a/src/security/vboot/Kconfig<br>+++ b/src/security/vboot/Kconfig<br>@@ -21,6 +21,7 @@<br>      select TPM2 if MAINBOARD_HAS_TPM2 && !VBOOT_MOCK_SECDATA<br>      select TPM_INIT_FAILURE_IS_FATAL if PC80_SYSTEM && LPC_TPM<br>    select SKIP_TPM_STARTUP_ON_NORMAL_BOOT if PC80_SYSTEM && LPC_TPM<br>+     select COLLECT_TIMESTAMPS<br>     depends on HAVE_HARD_RESET<br>    help<br>    Enabling VBOOT will use vboot to verify the components of the firmware<br>diff --git a/src/security/vboot/bootmode.c b/src/security/vboot/bootmode.c<br>index 834bc48..bddeafb 100644<br>--- a/src/security/vboot/bootmode.c<br>+++ b/src/security/vboot/bootmode.c<br>@@ -169,3 +169,8 @@<br> <br>         return 0;<br> }<br>+<br>+int __attribute__((weak)) get_write_protect_state(void)<br>+{<br>+       return 0;<br>+}<br></pre><p>To view, visit <a href="https://review.coreboot.org/22102">change 22102</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22102"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3b1555bd93e1605e04d5c3ea6a752eb1459e426e </div>
<div style="display:none"> Gerrit-Change-Number: 22102 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki@gmail.com> </div>