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)/musb/mt_usb.c \ |
| 14 | $(LOCAL_DIR)/musb/mt_usb_qmu.c \ |
| 15 | $(LOCAL_DIR)/musb/usb_i2c.c \ |
| 16 | $(LOCAL_DIR)/musb/phy-a60810.c \ |
| 17 | $(LOCAL_DIR)/wdt/mtk_wdt.c \ |
| 18 | $(LOCAL_DIR)/wdt/mtk_drm.c \ |
| 19 | $(LOCAL_DIR)/pwrap/pwrap.c \ |
| 20 | $(LOCAL_DIR)/timer/mt_gpt_v4.c \ |
| 21 | $(LOCAL_DIR)/emi/emi_mpu_v1.c \ |
| 22 | $(LOCAL_DIR)/i2c/mtk_i2c.c |
| 23 | |
| 24 | # GCE |
| 25 | MODULE_SRCS += $(LOCAL_DIR)/gce/mtk_gce.c |
| 26 | |
| 27 | ifeq ("$(PMIC)","MT6389") |
| 28 | MODULE_SRCS += \ |
| 29 | $(LOCAL_DIR)/pmic/$(PMIC)/pmic.c \ |
| 30 | $(LOCAL_DIR)/pmic/$(PMIC)/pmic_initial_setting.c \ |
| 31 | $(LOCAL_DIR)/pmic/$(PMIC)/mtk_regulator_core.c \ |
| 32 | $(LOCAL_DIR)/pmic/$(PMIC)/mt6389.c \ |
| 33 | $(LOCAL_DIR)/clkbuf/clkbuf_ctl.c \ |
| 34 | |
| 35 | endif |
| 36 | |
| 37 | MODULE_DEPS += \ |
| 38 | lib/bio \ |
| 39 | lib/cksum \ |
| 40 | lib/fdt \ |
| 41 | lib/mempool \ |
| 42 | lib/partition \ |
| 43 | |
| 44 | ifeq ($(LK_AS_BL33),0) |
| 45 | MODULE_SRCS += \ |
| 46 | $(LOCAL_DIR)/bgr/bgr.c |
| 47 | |
| 48 | MODULE_DEPS += \ |
| 49 | $(LOCAL_DIR)/../../../../dramk_2731 |
| 50 | endif |
| 51 | |
| 52 | MODULE_SRCS += \ |
| 53 | $(LOCAL_DIR)/vefuse/vefuse.c |
| 54 | |
| 55 | ifeq ($(ARCH),arm64) |
| 56 | MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2731/drivers/efuse/arm64/libefuse.o |
| 57 | endif |
| 58 | ifeq ($(ARCH),arm) |
| 59 | MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2731/drivers/efuse/arm/libefuse.o |
| 60 | endif |
| 61 | |
| 62 | ifeq ($(strip $(ENABLE_MODEM_LOAD)),1) |
| 63 | MODULES += \ |
| 64 | $(LOCAL_DIR)/md |
| 65 | endif |
| 66 | |
| 67 | ifeq ($(strip $(HSM_OS_SUPPORT)),yes) |
| 68 | MODULES += \ |
| 69 | $(LOCAL_DIR)/hsm |
| 70 | GLOBAL_DEFINES += ENABLE_HSM_CLK |
| 71 | endif |
| 72 | |
| 73 | include make/module.mk |
| 74 | include $(LOCAL_DIR)/audio/rules.mk |