blob: 0c3388c24abd57a090d052f36f8be5eab688c681 [file] [log] [blame]
#
# Copyright (C) 2018 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
subdir-ccflags-y += -Werror
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/
obj-$(CONFIG_MTK_EMI) += emi/
obj-$(CONFIG_MTK_EMI_BASIC) += emi/
obj-$(CONFIG_MTK_DRM) += drm/
obj-$(CONFIG_MTK_PMIC_NEW_ARCH) += pmic/
obj-$(CONFIG_MTK_VPU_SUPPORT) += vpu/
obj-$(CONFIG_MTK_RTC) += rtc/
obj-$(CONFIG_MTK_AMMS) += memory-amms/
obj-$(CONFIG_USB_MTK_HDRC) += usb20/
obj-$(CONFIG_MTK_FREQ_HOPPING) += freqhopping/
obj-$(CONFIG_MTK_ECCCI_C2K) += c2k_usb/
obj-$(CONFIG_MTK_BASE_POWER) += base/
obj-y += atf/
obj-$(CONFIG_MTK_CCCI_DEVICES) += ccci_util/
obj-$(CONFIG_MTK_NET_CCMNI) += ccmni/
obj-$(CONFIG_MTK_ECCCI_DRIVER) += eccci/
obj-$(CONFIG_MTK_SENSOR_SUPPORT) += sensor/
obj-$(CONFIG_MTK_CHIP) += chip/
obj-$(CONFIG_MTK_META_GPIO) += meta_gpio/
obj-$(CONFIG_MTK_BOOT) += boot/
obj-$(CONFIG_MTK_GIC_EXT) += ext_gic/
obj-$(CONFIG_MTK_SYS_CIRQ) += cirq/
obj-y += connectivity/
obj-$(CONFIG_MTK_CONN_MD) += conn_md/
obj-y += eint_debug/
#tianyan@2021.09.09 modify for add i2c test start
obj-y += i2c_test/
#tianyan@2021.09.09 modify for add i2c test end
#tianyan@2021.10.20 modify for DTR/RI gpio start
obj-y += wakeup_dtr/
#tianyan@2021.10.20 modify for DTR/RI gpio end
obj-$(CONFIG_MTK_DRAMC) += dramc/
ifdef CONFIG_MACH_MT2731
obj-$(CONFIG_THERMAL) += thermal/
endif
ifneq ($(wildcard $(srctree)/drivers/misc/mediatek/met_drv/),)
obj-y += met_drv/
endif
obj-$(CONFIG_MTK_PCIE_EP_INIT_DRIVER) += pcie-ep-init/
obj-$(CONFIG_MTK_CQDMA) += cqdma/
obj-$(CONFIG_MTK_WATCHPOINT) += watchpoint/
obj-$(CONFIG_MTK_AEE_FEATURE) += aee/
obj-$(CONFIG_MTK_RAM_CONSOLE) += ram_console/
obj-$(CONFIG_TRUSTONIC_TEE_SUPPORT) += gud/
obj-$(CONFIG_TRUSTONIC_TEE_SUPPORT) += tbase_test/
obj-$(CONFIG_HSM_SUPPORT) += hsm/