diff --git a/drivers/measured_boot/event_log/event_log.mk b/drivers/measured_boot/event_log/event_log.mk index d3fbbb5ae..1ff4aa81c 100644 --- a/drivers/measured_boot/event_log/event_log.mk +++ b/drivers/measured_boot/event_log/event_log.mk @@ -1,5 +1,5 @@ # -# Copyright (c) 2020-2021, Arm Limited. All rights reserved. +# Copyright (c) 2020-2022, Arm Limited. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -30,10 +30,7 @@ $(eval $(call add_defines,\ EVENT_LOG_LEVEL \ ))) -MEASURED_BOOT_SRC_DIR := drivers/measured_boot/event_log/ +EVENT_LOG_SRC_DIR := drivers/measured_boot/event_log/ -MEASURED_BOOT_SOURCES := ${MEASURED_BOOT_SRC_DIR}event_log.c \ - ${MEASURED_BOOT_SRC_DIR}event_print.c - -BL2_SOURCES += ${MEASURED_BOOT_SOURCES} -BL1_SOURCES += ${MEASURED_BOOT_SOURCES} +EVENT_LOG_SOURCES := ${EVENT_LOG_SRC_DIR}event_log.c \ + ${EVENT_LOG_SRC_DIR}event_print.c diff --git a/plat/arm/common/arm_common.mk b/plat/arm/common/arm_common.mk index 711ed03da..c45e04556 100644 --- a/plat/arm/common/arm_common.mk +++ b/plat/arm/common/arm_common.mk @@ -400,6 +400,9 @@ ifeq (${MEASURED_BOOT},1) MEASURED_BOOT_MK := drivers/measured_boot/event_log/event_log.mk $(info Including ${MEASURED_BOOT_MK}) include ${MEASURED_BOOT_MK} + + BL1_SOURCES += ${EVENT_LOG_SOURCES} + BL2_SOURCES += ${EVENT_LOG_SOURCES} endif ifneq ($(filter 1,${MEASURED_BOOT} ${TRUSTED_BOARD_BOOT}),)