gic.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2021 NXP
  2. #
  3. # SPDX-License-Identifier: BSD-3-Clause
  4. #
  5. #
  6. #------------------------------------------------------------------------------
  7. #
  8. # Select the GIC files
  9. #
  10. # -----------------------------------------------------------------------------
  11. ifeq (${ADD_GIC},)
  12. ADD_GIC := 1
  13. ifeq ($(GIC), GIC400)
  14. include drivers/arm/gic/v2/gicv2.mk
  15. GIC_SOURCES += ${GICV2_SOURCES}
  16. GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv2.c \
  17. plat/common/plat_gicv2.c
  18. PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv2
  19. else
  20. ifeq ($(GIC), GIC500)
  21. include drivers/arm/gic/v3/gicv3.mk
  22. GIC_SOURCES += ${GICV3_SOURCES}
  23. GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv3.c \
  24. plat/common/plat_gicv3.c
  25. PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv3
  26. else
  27. $(error -> GIC type not set!)
  28. endif
  29. endif
  30. ifeq (${BL_COMM_GIC_NEEDED},yes)
  31. BL_COMMON_SOURCES += ${GIC_SOURCES}
  32. else
  33. ifeq (${BL2_GIC_NEEDED},yes)
  34. BL2_SOURCES += ${GIC_SOURCES}
  35. endif
  36. ifeq (${BL31_GIC_NEEDED},yes)
  37. BL31_SOURCES += ${GIC_SOURCES}
  38. endif
  39. endif
  40. endif
  41. # -----------------------------------------------------------------------------