tegra_common.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
  3. # Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-3-Clause
  6. #
  7. PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \
  8. -Iplat/nvidia/tegra/include/lib \
  9. -Iplat/nvidia/tegra/include
  10. include lib/xlat_tables_v2/xlat_tables.mk
  11. PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}
  12. TEGRA_COMMON := plat/nvidia/tegra/common
  13. TEGRA_DRIVERS := plat/nvidia/tegra/drivers
  14. TEGRA_LIBS := plat/nvidia/tegra/lib
  15. # Include GICv3 driver files
  16. include drivers/arm/gic/v3/gicv3.mk
  17. TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \
  18. plat/common/plat_gicv3.c \
  19. ${TEGRA_COMMON}/tegra_gicv3.c
  20. # Include GICv2 driver files
  21. include drivers/arm/gic/v2/gicv2.mk
  22. TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \
  23. plat/common/plat_gicv2.c \
  24. ${TEGRA_COMMON}/tegra_gicv2.c
  25. TEGRA_GICv3_SOURCES := drivers/arm/gic/common/gic_common.c \
  26. drivers/arm/gic/v3/arm_gicv3_common.c \
  27. drivers/arm/gic/v3/gicv3_main.c \
  28. drivers/arm/gic/v3/gicv3_helpers.c \
  29. plat/common/plat_gicv3.c \
  30. ${TEGRA_COMMON}/tegra_gicv3.c
  31. BL31_SOURCES += drivers/delay_timer/delay_timer.c \
  32. drivers/io/io_storage.c \
  33. plat/common/aarch64/crash_console_helpers.S \
  34. ${TEGRA_LIBS}/debug/profiler.c \
  35. ${TEGRA_COMMON}/aarch64/tegra_helpers.S \
  36. ${TEGRA_LIBS}/debug/profiler.c \
  37. ${TEGRA_COMMON}/tegra_bl31_setup.c \
  38. ${TEGRA_COMMON}/tegra_delay_timer.c \
  39. ${TEGRA_COMMON}/tegra_fiq_glue.c \
  40. ${TEGRA_COMMON}/tegra_io_storage.c \
  41. ${TEGRA_COMMON}/tegra_platform.c \
  42. ${TEGRA_COMMON}/tegra_pm.c \
  43. ${TEGRA_COMMON}/tegra_sip_calls.c \
  44. ${TEGRA_COMMON}/tegra_sdei.c
  45. ifneq ($(ENABLE_STACK_PROTECTOR), 0)
  46. BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c
  47. endif
  48. ifeq (${EL3_EXCEPTION_HANDLING},1)
  49. BL31_SOURCES += plat/common/aarch64/plat_ehf.c
  50. endif