blob: ba2ccf6fe5905ddeb55e97318b1810a0b91a71b2 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2MODULE := $(LOCAL_DIR)
3
4MODULE_SRCS += \
5 $(LOCAL_DIR)/dcm/dcm.c \
6 $(LOCAL_DIR)/dcm/dcm_ctrl.c \
7 $(LOCAL_DIR)/gpio/mt_gpio.c \
8 $(LOCAL_DIR)/key/mtk_key.c \
9 $(LOCAL_DIR)/pll/pll.c \
10 $(LOCAL_DIR)/spm/spm_mtcmos.c \
11 $(LOCAL_DIR)/trng/mtk_trng.c \
12 $(LOCAL_DIR)/uart/uart.c \
13 $(LOCAL_DIR)/ssusb/mtu3.c \
14 $(LOCAL_DIR)/ssusb/mtu3_qmu.c \
15 $(LOCAL_DIR)/ssusb/tphy/usbphy.c \
16 $(LOCAL_DIR)/wdt/mtk_wdt.c \
17 $(LOCAL_DIR)/wdt/mtk_drm.c \
18 $(LOCAL_DIR)/spmi/pmif_clkmgr.c \
19 $(LOCAL_DIR)/spmi/pmif.c \
20 $(LOCAL_DIR)/spmi/spmi_common.c \
21 $(LOCAL_DIR)/spmi/spmi.c \
22 $(LOCAL_DIR)/spmi/spmi_dbg.c \
23 $(LOCAL_DIR)/timer/mt_gpt_v4.c \
24 $(LOCAL_DIR)/emi/emi_mpu_v1.c \
25 $(LOCAL_DIR)/i2c/mtk_i2c.c
26
27# GCE
28MODULE_SRCS += $(LOCAL_DIR)/gce/mtk_gce.c
29
30ifeq ("$(PMIC)","MT6330")
31MODULE_SRCS += \
32 $(LOCAL_DIR)/pmic/pmic.c \
33 $(LOCAL_DIR)/pmic/mt6330.c \
34 $(LOCAL_DIR)/regulator/mtk_regulator_core.c \
35 $(LOCAL_DIR)/pmic/pmic_efuse.c \
36 $(LOCAL_DIR)/pmic/pmic_initial_setting.c \
37 $(LOCAL_DIR)/pmic/tia.c \
38
39endif
40
41ifeq ("$(SUB_PMIC)","MT6315")
42MODULE_SRCS += \
43 $(LOCAL_DIR)/pmic/mt6315-spmi.c \
44 $(LOCAL_DIR)/pmic/mt6315-regulator.c \
45
46endif
47
48MODULE_DEPS += \
49 lib/bio \
50 lib/cksum \
51 lib/fdt \
52 lib/mempool \
53 lib/partition \
54
55ifeq ($(SLC_NAND_PROJECT), y)
56 MODULE_DEPS += lib/nftl
57
58 include $(LOCAL_DIR)/nandx/Nandx.mk
59endif
60
61ifeq ($(SPI_NAND_PROJECT), y)
62 MODULE_DEPS += lib/nftl
63
64 include $(LOCAL_DIR)/nandx/Nandx.mk
65endif
66
67ifeq ($(LK_AS_BL33),0)
68MODULE_SRCS += \
69 $(LOCAL_DIR)/bgr/bgr.c
70
71# KH TBD: need DRAM owner to create dramk_2735
72MODULE_DEPS += \
73 $(LOCAL_DIR)/dramk_2735
74endif
75
76MODULE_SRCS += \
77 $(LOCAL_DIR)/vefuse/vefuse.c
78
79ifeq ($(ARCH),arm64)
80#MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm64/libefuse.o
81endif
82ifeq ($(ARCH),arm)
83#MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm/libefuse.o
84endif
85
86ifeq ($(strip $(ENABLE_MODEM_LOAD)),1)
87MODULES += \
88 $(LOCAL_DIR)/md
89endif
90
91ifeq ($(strip $(HSM_OS_SUPPORT)),yes)
92MODULES += \
93 $(LOCAL_DIR)/hsm
94endif
95
96include make/module.mk
97include $(LOCAL_DIR)/audio/rules.mk