interconnect.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 2021 NXP
  2. #
  3. # SPDX-License-Identifier: BSD-3-Clause
  4. #
  5. #
  6. #------------------------------------------------------------------------------
  7. #
  8. # Select the Interconnect files
  9. #
  10. # -----------------------------------------------------------------------------
  11. ifeq (${ADD_INTERCONNECT},)
  12. ADD_INTERCONNECT := 1
  13. PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/interconnect
  14. ifeq (, $(filter $(INTERCONNECT), CCI400 CCN502 CCN504 CCN508))
  15. $(error -> Interconnect type not set!)
  16. else
  17. $(eval $(call add_define_val,INTERCONNECT,${INTERCONNECT}))
  18. ifeq ($(INTERCONNECT), $(filter $(INTERCONNECT), CCN502 CCN504 CCN508))
  19. INTERCONNECT_SOURCES := drivers/arm/ccn/ccn.c \
  20. ${PLAT_DRIVERS_PATH}/interconnect/ls_ccn.c
  21. else
  22. ifeq ($(INTERCONNECT), CCI400)
  23. INTERCONNECT_SOURCES := drivers/arm/cci/cci.c \
  24. ${PLAT_DRIVERS_PATH}/interconnect/ls_cci.c
  25. endif
  26. endif
  27. endif
  28. ifeq (${BL_COMM_INTERCONNECT_NEEDED},yes)
  29. BL_COMMON_SOURCES += ${INTERCONNECT_SOURCES}
  30. else
  31. ifeq (${BL2_INTERCONNECT_NEEDED},yes)
  32. BL2_SOURCES += ${INTERCONNECT_SOURCES}
  33. endif
  34. ifeq (${BL31_INTERCONNECT_NEEDED},yes)
  35. BL31_SOURCES += ${INTERCONNECT_SOURCES}
  36. endif
  37. endif
  38. endif
  39. # -----------------------------------------------------------------------------