timer.mk 494 B

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