blob: 69af02a3fbdfb1e08d121f4f4904939da327a93e [file] [log] [blame]
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)/musb/mt_usb.c \
$(LOCAL_DIR)/musb/mt_usb_qmu.c \
$(LOCAL_DIR)/musb/usb_i2c.c \
$(LOCAL_DIR)/musb/phy-a60810.c \
$(LOCAL_DIR)/wdt/mtk_wdt.c \
$(LOCAL_DIR)/wdt/mtk_drm.c \
$(LOCAL_DIR)/pwrap/pwrap.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)","MT6389")
MODULE_SRCS += \
$(LOCAL_DIR)/pmic/$(PMIC)/pmic.c \
$(LOCAL_DIR)/pmic/$(PMIC)/pmic_initial_setting.c \
$(LOCAL_DIR)/pmic/$(PMIC)/mtk_regulator_core.c \
$(LOCAL_DIR)/pmic/$(PMIC)/mt6389.c \
$(LOCAL_DIR)/clkbuf/clkbuf_ctl.c \
endif
MODULE_DEPS += \
lib/bio \
lib/cksum \
lib/fdt \
lib/mempool \
lib/partition \
ifeq ($(LK_AS_BL33),0)
MODULE_SRCS += \
$(LOCAL_DIR)/bgr/bgr.c
MODULE_DEPS += \
$(LOCAL_DIR)/../../../../dramk_2731
endif
MODULE_SRCS += \
$(LOCAL_DIR)/vefuse/vefuse.c
ifeq ($(ARCH),arm64)
MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2731/drivers/efuse/arm64/libefuse.o
endif
ifeq ($(ARCH),arm)
MODULE_EXTRA_OBJS += $(LOCAL_DIR)/../../../../lk_ext_mod/platform/mt2731/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
GLOBAL_DEFINES += ENABLE_HSM_CLK
endif
include make/module.mk
include $(LOCAL_DIR)/audio/rules.mk