[coreboot-gerrit] New patch to review for coreboot: 560c003 chromeos: honor MOCK_TPM=1

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Fri Mar 29 22:11:04 CET 2013

Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2976


commit 560c003d3b0acd4196c4d3cfb68eb5a914f01144
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Wed Mar 27 00:16:11 2013 -0500

    chromeos: honor MOCK_TPM=1
    The TPM code wasn't previously honoring MOCK_TPM=1. Because of this,
    boards with TPMs that didn't handle S3 resume properly would cause a
    hard reset. Allow one to build with MOCK_TPM=1 on the command line so
    that S3 can still work.
    Change-Id: I9adf06647de285c0b0a3203d8897be90d7783a1e
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
 src/vendorcode/google/chromeos/Makefile.inc | 6 ++++++
 src/vendorcode/google/chromeos/vboot.c      | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/vendorcode/google/chromeos/Makefile.inc b/src/vendorcode/google/chromeos/Makefile.inc
index 230523c..4fa22ea 100644
--- a/src/vendorcode/google/chromeos/Makefile.inc
+++ b/src/vendorcode/google/chromeos/Makefile.inc
@@ -31,6 +31,12 @@ ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/chromeos.c
 romstage-srcs += src/mainboard/$(MAINBOARDDIR)/chromeos.c
+ifeq ($(MOCK_TPM),1)
 romstage-y += vboot_loader.c
 rmodules-y += vboot_wrapper.c
diff --git a/src/vendorcode/google/chromeos/vboot.c b/src/vendorcode/google/chromeos/vboot.c
index 0f30547..03d759c 100644
--- a/src/vendorcode/google/chromeos/vboot.c
+++ b/src/vendorcode/google/chromeos/vboot.c
@@ -231,8 +231,10 @@ static void init_vboot(int bootmode)
+#if !MOCK_TPM
 	printk(BIOS_ERR, "TPM: Error code 0x%x. Hard reset!\n", result);

More information about the coreboot-gerrit mailing list