csu.mk 508 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #-----------------------------------------------------------------------------
  7. ifeq (${CSU_ADDED},)
  8. CSU_ADDED := 1
  9. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/csu
  10. CSU_SOURCES += $(PLAT_DRIVERS_PATH)/csu/csu.c
  11. ifeq (${BL_COMM_CSU_NEEDED},yes)
  12. BL_COMMON_SOURCES += ${CSU_SOURCES}
  13. else
  14. ifeq (${BL2_CSU_NEEDED},yes)
  15. BL2_SOURCES += ${CSU_SOURCES}
  16. endif
  17. ifeq (${BL31_CSU_NEEDED},yes)
  18. BL31_SOURCES += ${CSU_SOURCES}
  19. endif
  20. endif
  21. endif