platform.mk 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (c) 2024, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. MTK_PLAT := plat/mediatek
  7. MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
  8. MTK_SOC := ${PLAT}
  9. ARM_ARCH_MAJOR := 9
  10. include plat/mediatek/build_helpers/mtk_build_helpers.mk
  11. include drivers/arm/gic/v3/gicv3.mk
  12. include lib/xlat_tables_v2/xlat_tables.mk
  13. PLAT_INCLUDES := -I${MTK_PLAT}/common \
  14. -I${MTK_PLAT}/drivers/gpio/ \
  15. -I${MTK_PLAT}/include \
  16. -I${MTK_PLAT}/include/${ARCH_VERSION} \
  17. -I${MTK_PLAT} \
  18. -I${MTK_PLAT_SOC}/drivers/gpio/ \
  19. -I${MTK_PLAT_SOC}/include \
  20. -Idrivers/arm/gic \
  21. MODULES-y += $(MTK_PLAT)/common
  22. MODULES-y += $(MTK_PLAT)/lib/mtk_init
  23. MODULES-y += $(MTK_PLAT)/lib/pm
  24. MODULES-y += $(MTK_PLAT)/drivers/dp
  25. MODULES-y += $(MTK_PLAT)/drivers/mcusys
  26. MODULES-y += $(MTK_PLAT)/drivers/timer
  27. MODULES-y += $(MTK_PLAT)/drivers/vcp
  28. MODULES-y += $(MTK_PLAT)/helpers
  29. MODULES-y += $(MTK_PLAT)/topology
  30. PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
  31. drivers/ti/uart/aarch64/16550_console.S \
  32. lib/bl_aux_params/bl_aux_params.c
  33. BL31_SOURCES += drivers/delay_timer/delay_timer.c \
  34. drivers/delay_timer/generic_delay_timer.c \
  35. drivers/gpio/gpio.c \
  36. lib/cpus/aarch64/cortex_a720.S \
  37. lib/cpus/aarch64/cortex_x4.S \
  38. lib/cpus/aarch64/cortex_x925.S \
  39. ${GICV3_SOURCES} \
  40. ${XLAT_TABLES_LIB_SRCS} \
  41. plat/common/plat_gicv3.c \
  42. plat/common/plat_psci_common.c \
  43. plat/common/aarch64/crash_console_helpers.S \
  44. ${MTK_PLAT}/common/mtk_plat_common.c \
  45. ${MTK_PLAT}/common/params_setup.c \
  46. ${MTK_PLAT}/drivers/gpio/mtgpio_common.c \
  47. $(MTK_PLAT)/$(MTK_SOC)/drivers/gpio/mtgpio.c \
  48. $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c
  49. include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk
  50. include lib/coreboot/coreboot.mk