| # |
| # Copyright (c) 2022, MediaTek Inc. All rights reserved. |
| # |
| # SPDX-License-Identifier: BSD-3-Clause |
| # |
| |
| MTK_PLAT := plat/mediatek |
| MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} |
| MTK_SOC := ${PLAT} |
| |
| include plat/mediatek/build_helpers/mtk_build_helpers.mk |
| include drivers/arm/gic/v3/gicv3.mk |
| include lib/xlat_tables_v2/xlat_tables.mk |
| |
| PLAT_INCLUDES := -I${MTK_PLAT}/common \ |
| -I${MTK_PLAT}/include \ |
| -I${MTK_PLAT}/include/${ARCH_VERSION} \ |
| -I${MTK_PLAT} \ |
| -I${MTK_PLAT_SOC}/include \ |
| -Idrivers/arm/gic \ |
| |
| MODULES-y += $(MTK_PLAT)/common |
| MODULES-y += $(MTK_PLAT)/lib/mtk_init |
| MODULES-y += $(MTK_PLAT)/lib/pm |
| MODULES-y += $(MTK_PLAT)/lib/system_reset |
| MODULES-y += $(MTK_PLAT)/drivers/cirq |
| MODULES-y += $(MTK_PLAT)/drivers/dcm |
| MODULES-y += $(MTK_PLAT)/drivers/dfd |
| MODULES-y += $(MTK_PLAT)/drivers/dp |
| MODULES-y += $(MTK_PLAT)/drivers/emi_mpu |
| MODULES-y += $(MTK_PLAT)/drivers/gic600 |
| MODULES-y += $(MTK_PLAT)/drivers/gpio |
| MODULES-y += $(MTK_PLAT)/drivers/iommu |
| MODULES-y += $(MTK_PLAT)/drivers/lpm |
| MODULES-y += $(MTK_PLAT)/drivers/mcusys |
| MODULES-y += $(MTK_PLAT)/drivers/pmic |
| MODULES-y += $(MTK_PLAT)/drivers/pmic_wrap |
| MODULES-y += $(MTK_PLAT)/drivers/rtc |
| MODULES-y += $(MTK_PLAT)/drivers/timer |
| MODULES-y += $(MTK_PLAT)/helpers |
| MODULES-y += $(MTK_PLAT)/topology |
| |
| PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \ |
| drivers/ti/uart/aarch64/16550_console.S \ |
| lib/bl_aux_params/bl_aux_params.c |
| |
| BL31_SOURCES += drivers/delay_timer/delay_timer.c \ |
| drivers/delay_timer/generic_delay_timer.c \ |
| lib/cpus/aarch64/cortex_a55.S \ |
| lib/cpus/aarch64/cortex_a78.S \ |
| ${GICV3_SOURCES} \ |
| ${XLAT_TABLES_LIB_SRCS} \ |
| plat/common/plat_gicv3.c \ |
| plat/common/plat_psci_common.c \ |
| plat/common/aarch64/crash_console_helpers.S \ |
| ${MTK_PLAT}/common/mtk_plat_common.c \ |
| ${MTK_PLAT}/common/params_setup.c \ |
| $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c |
| |
| include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk |
| |
| include lib/coreboot/coreboot.mk |