blob: 84bcfac749039ddc65f607c5ef5ff41ba5f9e5da [file] [log] [blame]
developer6d207b42022-07-07 19:30:22 +08001#
2# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7MTK_PLAT := plat/mediatek
8MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9MTK_SOC := ${PLAT}
10
11include plat/mediatek/build_helpers/mtk_build_helpers.mk
12include drivers/arm/gic/v3/gicv3.mk
13include lib/xlat_tables_v2/xlat_tables.mk
14
15PLAT_INCLUDES := -I${MTK_PLAT}/common \
16 -I${MTK_PLAT}/include \
17 -I${MTK_PLAT}/include/${MTK_SOC} \
18 -I${MTK_PLAT} \
19 -I${MTK_PLAT_SOC}/include \
20 -Idrivers/arm/gic \
21
22MODULES-y += $(MTK_PLAT)/common
23MODULES-y += $(MTK_PLAT)/lib/mtk_init
24MODULES-y += $(MTK_PLAT)/lib/pm
developerbdeb0ba2022-07-08 14:48:56 +080025MODULES-y += $(MTK_PLAT)/drivers/cirq
developer7fa15de2022-07-11 19:03:35 +080026MODULES-y += $(MTK_PLAT)/drivers/dp
developer66002552022-07-08 13:58:33 +080027MODULES-y += $(MTK_PLAT)/drivers/gic600
Jianguo Zhangbe99c732022-07-29 13:55:03 +080028MODULES-y += $(MTK_PLAT)/drivers/gpio
Chengci Xudb1e75b2022-07-20 16:20:15 +080029MODULES-y += $(MTK_PLAT)/drivers/iommu
Hui Liu39ea6142022-07-28 20:28:32 +080030MODULES-y += $(MTK_PLAT)/drivers/pmic
31MODULES-y += $(MTK_PLAT)/drivers/pmic_wrap
Song Fana4efd722022-07-25 19:50:52 +080032MODULES-y += $(MTK_PLAT)/drivers/rtc
developerc193d632022-07-08 13:16:17 +080033MODULES-y += $(MTK_PLAT)/drivers/timer
developer6d207b42022-07-07 19:30:22 +080034
35PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
36 drivers/ti/uart/aarch64/16550_console.S \
37 lib/bl_aux_params/bl_aux_params.c
38
39BL31_SOURCES += drivers/delay_timer/delay_timer.c \
40 drivers/delay_timer/generic_delay_timer.c \
41 lib/cpus/aarch64/cortex_a55.S \
42 lib/cpus/aarch64/cortex_a78.S \
43 ${GICV3_SOURCES} \
44 ${XLAT_TABLES_LIB_SRCS} \
45 plat/common/plat_gicv3.c \
46 plat/common/plat_psci_common.c \
47 plat/common/aarch64/crash_console_helpers.S \
48 ${MTK_PLAT}/common/mtk_plat_common.c \
49 ${MTK_PLAT}/common/params_setup.c \
50 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
51 $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c \
52 $(MTK_PLAT)/$(MTK_SOC)/plat_topology.c
53
54include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk
55
56include lib/coreboot/coreboot.mk