diff options
author | Javier Almansa Sobrino <javier.almansasobrino@arm.com> | 2020-09-18 16:47:07 +0100 |
---|---|---|
committer | Javier Almansa Sobrino <javier.almansasobrino@arm.com> | 2020-09-22 14:54:50 +0100 |
commit | 6ac269d16ccb83e4d2c33683366aa0c0e2a8aea0 (patch) | |
tree | 507f324717d119abcc5f3e2252f5a2b948d4c82d /drivers | |
parent | 73740d98d99cb740ff67e188b6a7c1db816bf9f4 (diff) | |
download | trusted-firmware-a-6ac269d16ccb83e4d2c33683366aa0c0e2a8aea0.tar.gz |
Select the Log Level for the Event Log Dump on Measured Boot at build time.
Builds in Debug mode with Measured Boot enabled might run out of trusted
SRAM. This patch allows to change the Log Level at which the Measured Boot
driver will dump the event log, so the latter can be accessed even on
Release builds if necessary, saving space on RAM.
Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I133689e313776cb3f231b774c26cbca4760fa120
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/measured_boot/measured_boot.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/measured_boot/measured_boot.mk b/drivers/measured_boot/measured_boot.mk index b7aa48bb97..497fdbaaee 100644 --- a/drivers/measured_boot/measured_boot.mk +++ b/drivers/measured_boot/measured_boot.mk @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# Default log level to dump the event log (LOG_LEVEL_INFO) +EVENT_LOG_LEVEL ?= 40 + # TPM hash algorithm TPM_HASH_ALG := sha256 @@ -31,6 +34,7 @@ $(eval $(call add_defines,\ TPM_ALG_ID \ TCG_DIGEST_SIZE \ EVENT_LOG_SIZE \ + EVENT_LOG_LEVEL \ ))) ifeq (${HASH_ALG}, sha256) |