Debian Codegraph @

drivers/nxp/timer/timer.mk

raw
1 #
2 # Copyright 2021 NXP
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 ifeq (${ADD_TIMER},)
8
9 ADD_TIMER := 1
10
11 PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/timer
12 TIMER_SOURCES += drivers/delay_timer/delay_timer.c \
13 $(PLAT_DRIVERS_PATH)/timer/nxp_timer.c
14
15 ifeq (${BL_COMM_TIMER_NEEDED},yes)
16 BL_COMMON_SOURCES += ${TIMER_SOURCES}
17 else
18 ifeq (${BL2_TIMER_NEEDED},yes)
19 BL2_SOURCES += ${TIMER_SOURCES}
20 endif
21 ifeq (${BL31_TIMER_NEEDED},yes)
22 BL31_SOURCES += ${TIMER_SOURCES}
23 endif
24 endif
25 endif