mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 15:14:21 +00:00

Add tpm2 drivers to tf-a with adequate framework -implement a fifo spi interface that works with discrete tpm chip. -implement tpm command layer interfaces that are used to initialize, start and make measurements and close the interface. -tpm drivers are built using their own make file to allow for ease in porting across platforms, and across different interfaces. Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com> Signed-off-by: Abhi Singh <abhi.singh@arm.com> Change-Id: Ie1a189f45c80f26f4dea16c3bd71b1503709e0ea
26 lines
711 B
Makefile
26 lines
711 B
Makefile
#
|
|
# Copyright (c) 2025, Arm Limited. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
TPM2_SRC_DIR := drivers/tpm/
|
|
|
|
TPM2_SOURCES := ${TPM2_SRC_DIR}tpm2_cmds.c \
|
|
${TPM2_SRC_DIR}tpm2_chip.c
|
|
|
|
# TPM Hash algorithm, used during Measured Boot
|
|
# currently only accepts SHA-256
|
|
ifeq (${MBOOT_TPM_HASH_ALG}, sha256)
|
|
TPM_ALG_ID := TPM_ALG_SHA256
|
|
TCG_DIGEST_SIZE := 32U
|
|
else
|
|
$(error "The selected MBOOT_TPM_HASH_ALG is invalid.")
|
|
endif #MBOOT_TPM_HASH_ALG
|
|
|
|
ifeq (${TPM_INTERFACE}, FIFO_SPI)
|
|
TPM2_SOURCES += ${TPM2_SRC_DIR}tpm2_fifo.c \
|
|
${TPM2_SRC_DIR}tpm2_fifo_spi.c
|
|
else
|
|
$(error "The selected TPM_INTERFACE is invalid.")
|
|
endif #TPM_INTERFACE
|