tzc.mk 755 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ifeq (${ADD_TZASC},)
  7. ADD_TZASC := 1
  8. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/tzc
  9. ifeq ($(TZC_ID), TZC400)
  10. TZASC_SOURCES += drivers/arm/tzc/tzc400.c\
  11. $(PLAT_DRIVERS_PATH)/tzc/plat_tzc400.c
  12. else
  13. ifeq ($(TZC_ID), TZC380)
  14. TZASC_SOURCES += drivers/arm/tzc/tzc380.c\
  15. $(PLAT_DRIVERS_PATH)/tzc/plat_tzc380.c
  16. else
  17. ifeq ($(TZC_ID), NONE)
  18. $(info -> No TZC present on platform)
  19. else
  20. $(error -> TZC type not set!)
  21. endif
  22. endif
  23. endif
  24. ifeq (${BL_COMM_TZASC_NEEDED},yes)
  25. BL_COMMON_SOURCES += ${TZASC_SOURCES}
  26. else
  27. ifeq (${BL2_TZASC_NEEDED},yes)
  28. BL2_SOURCES += ${TZASC_SOURCES}
  29. endif
  30. ifeq (${BL31_TZASC_NEEDED},yes)
  31. BL31_SOURCES += ${TZASC_SOURCES}
  32. endif
  33. endif
  34. endif