diff options
author | Yen Lin <yelin@nvidia.com> | 2015-04-08 16:55:17 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-27 20:48:52 +0200 |
commit | 5bdbd004e689157588c01b9689611b826d2382c9 (patch) | |
tree | b4980c567744ccda59a9aee50abffa0cad68ab51 /src/lib/Makefile.inc | |
parent | cd4165acaba095d03575d35e8a7458cd950f1087 (diff) | |
download | coreboot-5bdbd004e689157588c01b9689611b826d2382c9.tar.xz |
lib/tlcl: Provide mock implementation
It returns TPM_E_NO_DEVICE for all calls.
BRANCH=None
BUG=None
TEST=manual MOCK_TPM=1 emerge-foster coreboot, and
coreboot can boot to kernel
Change-Id: Id7e79b58fabeac929b874385064b2417db49a708
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: a9a91a65af115657e7317754eda931120750c56d
Original-Signed-off-by: Yen Lin <yelin@nvidia.com>
Original-Change-Id: I8dcf0db14cf2bc76c67a3bd7f06114e70e08764d
Original-Reviewed-on: https://chromium-review.googlesource.com/264946
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/9983
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib/Makefile.inc')
-rw-r--r-- | src/lib/Makefile.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index f0fb028741..78b16d91b5 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -35,7 +35,13 @@ verstage-y += cbfs.c verstage-y += memcmp.c verstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c verstage-$(CONFIG_COMMON_CBFS_SPI_WRAPPER) += cbfs_spi.c + +ifeq ($(MOCK_TPM),1) +verstage-y += mocked_tlcl.c +else verstage-y += tlcl.c +endif + verstage-$(CONFIG_GENERIC_UDELAY) += timer.c verstage-$(CONFIG_GENERIC_GPIO_LIB) += gpio.c |