| LOCAL_DIR := $(GET_LOCAL_DIR) |
| MODULE := $(LOCAL_DIR) |
| |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/dcm/dcm.c \ |
| $(LOCAL_DIR)/dcm/dcm_ctrl.c \ |
| $(LOCAL_DIR)/gpio/mt_gpio.c \ |
| $(LOCAL_DIR)/key/mtk_key.c \ |
| $(LOCAL_DIR)/pll/pll.c \ |
| $(LOCAL_DIR)/spm/spm_mtcmos.c \ |
| $(LOCAL_DIR)/trng/mtk_trng.c \ |
| $(LOCAL_DIR)/uart/uart.c \ |
| $(LOCAL_DIR)/ssusb/mtu3.c \ |
| $(LOCAL_DIR)/ssusb/mtu3_qmu.c \ |
| $(LOCAL_DIR)/ssusb/tphy/usbphy.c \ |
| $(LOCAL_DIR)/wdt/mtk_wdt.c \ |
| $(LOCAL_DIR)/wdt/mtk_drm.c \ |
| $(LOCAL_DIR)/spmi/pmif_clkmgr.c \ |
| $(LOCAL_DIR)/spmi/pmif.c \ |
| $(LOCAL_DIR)/spmi/spmi_common.c \ |
| $(LOCAL_DIR)/spmi/spmi.c \ |
| $(LOCAL_DIR)/spmi/spmi_dbg.c \ |
| $(LOCAL_DIR)/timer/mt_gpt_v4.c \ |
| $(LOCAL_DIR)/emi/emi_mpu_v1.c \ |
| $(LOCAL_DIR)/i2c/mtk_i2c.c |
| |
| # GCE |
| MODULE_SRCS += $(LOCAL_DIR)/gce/mtk_gce.c |
| |
| ifeq ("$(PMIC)","MT6330") |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/pmic/pmic.c \ |
| $(LOCAL_DIR)/pmic/mt6330.c \ |
| $(LOCAL_DIR)/regulator/mtk_regulator_core.c \ |
| $(LOCAL_DIR)/pmic/pmic_efuse.c \ |
| $(LOCAL_DIR)/pmic/pmic_initial_setting.c \ |
| $(LOCAL_DIR)/pmic/tia.c \ |
| |
| endif |
| |
| ifeq ("$(SUB_PMIC)","MT6315") |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/pmic/mt6315-spmi.c \ |
| $(LOCAL_DIR)/pmic/mt6315-regulator.c \ |
| |
| endif |
| |
| MODULE_DEPS += \ |
| lib/bio \ |
| lib/cksum \ |
| lib/fdt \ |
| lib/mempool \ |
| lib/partition \ |
| |
| ifeq ($(SLC_NAND_PROJECT), y) |
| MODULE_DEPS += lib/nftl |
| |
| include $(LOCAL_DIR)/nandx/Nandx.mk |
| endif |
| |
| ifeq ($(SPI_NAND_PROJECT), y) |
| MODULE_DEPS += lib/nftl |
| |
| include $(LOCAL_DIR)/nandx/Nandx.mk |
| endif |
| |
| ifeq ($(LK_AS_BL33),0) |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/bgr/bgr.c |
| |
| # KH TBD: need DRAM owner to create dramk_2735 |
| MODULE_DEPS += \ |
| $(LOCAL_DIR)/dramk_2735 |
| endif |
| |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/vefuse/vefuse.c |
| |
| ifeq ($(ARCH),arm64) |
| #MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm64/libefuse.o |
| endif |
| ifeq ($(ARCH),arm) |
| #MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm/libefuse.o |
| endif |
| |
| ifeq ($(strip $(ENABLE_MODEM_LOAD)),1) |
| MODULES += \ |
| $(LOCAL_DIR)/md |
| endif |
| |
| ifeq ($(strip $(HSM_OS_SUPPORT)),yes) |
| MODULES += \ |
| $(LOCAL_DIR)/hsm |
| endif |
| |
| include make/module.mk |
| include $(LOCAL_DIR)/audio/rules.mk |