summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/bootblock/bootblock_measure.c
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2022-05-19 09:16:28 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-24 13:44:28 +0000
commit5c808e03e2d80edd9ecd6a2a9268152b477940b6 (patch)
treef49680d445e435871dd5bbbef3c5e569dd644a47 /src/soc/intel/apollolake/bootblock/bootblock_measure.c
parentca29a191d591e1e3e47e1577418916f72e6e108a (diff)
security/tpm/crtm: Add a function to measure the bootblock on SoC level
On platforms where the bootblock is not included in CBFS anymore (because it is part of another firmware section (IFWI or a different CBFS), the CRTM measurement fails. This patch adds a new function to provide a way at SoC level to measure the bootblock. Following patches will add functionality to retrieve the bootblock from the SoC related location and measure it from there. In this way the really executed code will be measured. Change-Id: I6d0da1e95a9588eb5228f63151bb04bfccfcf04b Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64492 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/intel/apollolake/bootblock/bootblock_measure.c')
-rw-r--r--src/soc/intel/apollolake/bootblock/bootblock_measure.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/bootblock/bootblock_measure.c b/src/soc/intel/apollolake/bootblock/bootblock_measure.c
new file mode 100644
index 0000000000..16ba154bb7
--- /dev/null
+++ b/src/soc/intel/apollolake/bootblock/bootblock_measure.c
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <security/tpm/tspi/crtm.h>
+
+int tspi_soc_measure_bootblock(int pcr_index)
+{
+ return 1;
+}