rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | MODULE := $(LOCAL_DIR) |
| 3 | |
| 4 | MODULE_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 |
| 28 | MODULE_SRCS += $(LOCAL_DIR)/gce/mtk_gce.c |
| 29 | |
| 30 | ifeq ("$(PMIC)","MT6330") |
| 31 | MODULE_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 | |
| 39 | endif |
| 40 | |
| 41 | ifeq ("$(SUB_PMIC)","MT6315") |
| 42 | MODULE_SRCS += \ |
| 43 | $(LOCAL_DIR)/pmic/mt6315-spmi.c \ |
| 44 | $(LOCAL_DIR)/pmic/mt6315-regulator.c \ |
| 45 | |
| 46 | endif |
| 47 | |
| 48 | MODULE_DEPS += \ |
| 49 | lib/bio \ |
| 50 | lib/cksum \ |
| 51 | lib/fdt \ |
| 52 | lib/mempool \ |
| 53 | lib/partition \ |
| 54 | |
| 55 | ifeq ($(SLC_NAND_PROJECT), y) |
| 56 | MODULE_DEPS += lib/nftl |
| 57 | |
| 58 | include $(LOCAL_DIR)/nandx/Nandx.mk |
| 59 | endif |
| 60 | |
| 61 | ifeq ($(SPI_NAND_PROJECT), y) |
| 62 | MODULE_DEPS += lib/nftl |
| 63 | |
| 64 | include $(LOCAL_DIR)/nandx/Nandx.mk |
| 65 | endif |
| 66 | |
| 67 | ifeq ($(LK_AS_BL33),0) |
| 68 | MODULE_SRCS += \ |
| 69 | $(LOCAL_DIR)/bgr/bgr.c |
| 70 | |
| 71 | # KH TBD: need DRAM owner to create dramk_2735 |
| 72 | MODULE_DEPS += \ |
| 73 | $(LOCAL_DIR)/dramk_2735 |
| 74 | endif |
| 75 | |
| 76 | MODULE_SRCS += \ |
| 77 | $(LOCAL_DIR)/vefuse/vefuse.c |
| 78 | |
| 79 | ifeq ($(ARCH),arm64) |
| 80 | #MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm64/libefuse.o |
| 81 | endif |
| 82 | ifeq ($(ARCH),arm) |
| 83 | #MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2735/drivers/efuse/arm/libefuse.o |
| 84 | endif |
| 85 | |
| 86 | ifeq ($(strip $(ENABLE_MODEM_LOAD)),1) |
| 87 | MODULES += \ |
| 88 | $(LOCAL_DIR)/md |
| 89 | endif |
| 90 | |
| 91 | ifeq ($(strip $(HSM_OS_SUPPORT)),yes) |
| 92 | MODULES += \ |
| 93 | $(LOCAL_DIR)/hsm |
| 94 | endif |
| 95 | |
| 96 | include make/module.mk |
| 97 | include $(LOCAL_DIR)/audio/rules.mk |