console.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. #------------------------------------------------------------------------------
  8. #
  9. # Select the CORE files
  10. #
  11. # -----------------------------------------------------------------------------
  12. ifeq (${ADD_CONSOLE},)
  13. ADD_CONSOLE := 1
  14. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/console
  15. ifeq ($(CONSOLE), NS16550)
  16. NXP_CONSOLE := NS16550
  17. $(eval $(call add_define_val,NXP_CONSOLE,${NXP_CONSOLE}))
  18. CONSOLE_SOURCES := $(PLAT_DRIVERS_PATH)/console/16550_console.S \
  19. $(PLAT_DRIVERS_PATH)/console/console_16550.c
  20. else
  21. ifeq ($(CONSOLE), PL011)
  22. CONSOLE_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \
  23. ${PLAT_DRIVERS_PATH}/console/console_pl011.c
  24. else
  25. $(error -> CONSOLE not set!)
  26. endif
  27. endif
  28. ifeq (${BL_COMM_CONSOLE_NEEDED},yes)
  29. BL_COMMON_SOURCES += ${CONSOLE_SOURCES}
  30. else
  31. ifeq (${BL2_CONSOLE_NEEDED},yes)
  32. BL2_SOURCES += ${CONSOLE_SOURCES}
  33. endif
  34. ifeq (${BL31_CONSOLE_NEEDED},yes)
  35. BL31_SOURCES += ${CONSOLE_SOURCES}
  36. endif
  37. endif
  38. endif
  39. # -----------------------------------------------------------------------------