1
0
mirror of https://github.com/physwizz/a155-U-u1.git synced 2024-11-19 13:27:49 +00:00
a155-U-u1/kernel-5.10/drivers/misc/mediatek/cmdq/mailbox/Makefile
2024-03-11 06:53:12 +11:00

72 lines
2.6 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2021 MediaTek Inc.
#
ccflags-y += -I$(srctree)/drivers/iommu \
-I$(srctree)/drivers/misc/mediatek/iommu/ \
-I$(srctree)/drivers/misc/mediatek/include \
-I$(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/include \
-I$(srctree)/drivers/misc/mediatek/mdp/$(MTK_PLATFORM) \
-I$(srctree)/drivers/misc/mediatek/mmp/ \
-I$(srctree)/drivers/misc/mediatek/smi/ \
-I$(srctree)/drivers/misc/mediatek/vcp/rv/ \
-I$(srctree)/drivers/misc/mediatek/vcp/include/
ccflags-$(CONFIG_DEBUG_FS) += -DCMDQ_MMPROFILE_SUPPORT
ifeq ($(CONFIG_MICROTRUST_TEE_SUPPORT),m)
include $(srctree)/drivers/tee/teei/Makefile.include
endif
ifeq ($(CONFIG_TRUSTONIC_TEE_SUPPORT),m)
include $(srctree)/drivers/tee/gud/Makefile.include
endif
ifeq ($(CONFIG_MTK_GZ_TZ_SYSTEM),m)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/geniezone/public
ccflags-y += -DCMDQ_SECURE_MTEE_SUPPORT
ccflags-y += -DCMDQ_SECURE_SUPPORT
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-sec-drv.o
cmdq-sec-drv-y := cmdq_sec_mtee.o cmdq-sec-mailbox.o cmdq-sec-helper.o
endif
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += mtk-cmdq-drv-ext.o
mtk-cmdq-drv-ext-y := mtk-cmdq-mailbox-ext.o mtk-cmdq-helper-ext.o cmdq-util.o
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-test.o
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6833.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6833.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6853.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6853.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6873.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6873.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6885.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6885.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6893.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6893.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6983.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6983.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6879.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6879.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6895.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6895.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6855.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6855.o
endif
ifneq ($(wildcard $(srctree)/$(src)/cmdq-platform-mt6789.c),)
obj-$(CONFIG_MTK_CMDQ_MBOX_EXT) += cmdq-platform-mt6789.o
endif