refactor(measured-boot): cleanup Event Log makefile
The Event Log sources are added to the source-list of BL1 and BL2 images in the Event Log Makefile. It doesn't seem correct since some platforms only compile Event Log sources for BL2. Hence, moved compilation decision of Event Log sources to the platform makefile. Change-Id: I1cb96e24d6bea5e091d08167f3d1470d22b461cc Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
20eb9d5bba
commit
992d97c45f
|
@ -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
|
||||
|
|
|
@ -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}),)
|
||||
|
|
Loading…
Reference in New Issue