kernel_samsung_a34x-permissive/drivers/gpu/drm/mediatek/Makefile

147 lines
4.5 KiB
Makefile
Raw Normal View History

subdir-ccflags-y += -Werror
mediatek-drm-y := mtk_drm_drv.o \
mtk_disp_color.o \
mtk_disp_ccorr.o \
mtk_disp_gamma.o \
mtk_disp_aal.o \
mtk_disp_dither.o \
mtk_disp_ovl.o \
mtk_disp_rdma.o \
mtk_disp_rsz.o \
mtk_disp_wdma.o \
mtk_notify.o \
mtk_cust.o \
mtk_drm_crtc.o \
mtk_drm_ddp.o \
mtk_drm_ddp_addon.o \
mtk_drm_ddp_comp.o \
mtk_drm_fb.o \
mtk_drm_gem.o \
mtk_drm_plane.o \
mtk_dsi.o \
mtk_mipi_tx.o \
mtk_writeback.o \
mtk_sync.o \
mtk_fence.o \
mtk_drm_session.o \
mtk_dump.o \
mtk_debug.o \
mtk_layering_rule.o \
mtk_layering_rule_base.o \
mtk_rect.o \
mtk_drm_mmp.o \
mtk_drm_trace.o \
mtk_panel_ext.o \
mtk_drm_helper.o \
mtk_drm_lowpower.o \
mtk_disp_postmask.o \
mtk_drm_assert.o \
mtk_drm_fbconsole.o \
mtk_disp_recovery.o \
mtk_disp_pmqos.o \
mtk_disp_dsc.o \
mtk_drm_arr.o \
mtk_disp_merge.o \
mtk_dmdp_aal.o \
mtk_fbconfig_kdebug.o
ifneq ($(CONFIG_MTK_CMDQ_MBOX), y)
mediatek-drm-y += mtk_cmdq_dummy.o
endif
ifeq ($(CONFIG_DRM_MEDIATEK_DEBUG_FS),y)
mediatek-drm-y += mtk_drm_debugfs.o
endif
ifeq ($(CONFIG_MTK_HDMI_SUPPORT), y)
obj-y += mtk_dp_intf.o \
mtk_dp.o \
mtk_dp_hal.o \
mtk_dp_debug.o
ifeq (yy, $(CONFIG_MTK_TEE_GP_SUPPORT)$(CONFIG_TRUSTONIC_TEE_SUPPORT))
obj-y += ca/
ccflags-y += -DDPTX_HDCP_ENABLE
obj-y += mtk_dp_hdcp1x.o \
mtk_dp_hdcp2.o
endif
endif
mediatek-drm-$(CONFIG_DRM_FBDEV_EMULATION) += mtk_drm_fbdev.o
obj-$(CONFIG_DRM_MEDIATEK) += mediatek-drm.o
obj-$(CONFIG_MTK_MT6382_BDG) += mtk_disp_bdg.o
mediatek-drm-hdmi-objs := mtk_cec.o \
mtk_hdmi.o \
mtk_hdmi_ddc.o \
mtk_mt8173_hdmi_phy.o
obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o \
mtk_dpi.o \
mtk_lvds.o \
mtk_lvds_phy.o
ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM) \
-I$(srctree)/drivers/misc/mediatek/smi/ \
-I$(srctree)/drivers/misc/mediatek/mmp/ \
-I$(srctree)/drivers/misc/mediatek/spi_slave_drv/ \
-I$(srctree)/drivers/misc/mediatek/base/power/include/ \
-I$(srctree)/drivers/misc/mediatek/mmdvfs/ \
-I$(srctree)/drivers/misc/mediatek/pmic/ \
-I$(srctree)/drivers/iommu/ \
-I$(srctree)/drivers/devfreq/ \
-I$(srctree)/drivers/gpu/drm/ \
-I$(srctree)/drivers/misc/mediatek/include/mt-plat \
-I$(srctree)/drivers/misc/mediatek/leds/ \
-I$(srctree)/drivers/misc/mediatek/leds/$(MTK_PLATFORM) \
-I$(srctree)/drivers/misc/mediatek/cmdq/mailbox/ \
-I$(srctree)/drivers/misc/mediatek/cmdq/bridge
ifeq (y, $(filter y, $(CONFIG_MACH_MT6833)))
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/mt6833/include/mach/
else
ifeq (y, $(filter y, $(CONFIG_MACH_MT6781)))
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/mt6781/include/mach/
else
ifeq (y, $(filter y, $(CONFIG_MACH_MT6877)))
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/mt6877/include/mach/
else
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/
endif
endif
endif
ifeq ($(or $(strip $(CONFIG_MTK_SVP_ON_MTEE_SUPPORT)), $(strip $(CONFIG_MTK_CAM_GENIEZONE_SUPPORT))),y)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/trustzone/m4u
ccflags-y += -I$(srctree)/drivers/iommu
endif
ccflags-$(CONFIG_MTK_CMDQ_MBOX_EXT) += -I$(srctree)/drivers/misc/mediatek/cmdq/mailbox
subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion/ \
-I$(srctree)/drivers/staging/android/ion/mtk \
-I$(srctree)/drivers/staging/android/mtk_ion\
-I$(srctree)/drivers/staging/android/mtk_ion/mtk \
-I$(srctree)/drivers/misc/mediatek/trusted_mem/public
ifeq (y, $(filter y, $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893) $(CONFIG_MACH_MT6873) $(CONFIG_MACH_MT6853)))
ccflags-y += -DDRM_MMPATH
ccflags-y += -DNOT_SUPPORT_CABC_HW
ccflags-y += -DDISP_MDP_COLOR_ON
ccflags-y += -DCCORR_SUPPORT
endif
ifeq (y, $(filter y, $(CONFIG_MACH_MT6833) $(CONFIG_MACH_MT6877) $(CONFIG_MACH_MT6781)))
ccflags-y += -DNOT_SUPPORT_CABC_HW
ccflags-y += -DDISP_MDP_COLOR_ON
ccflags-y += -DCCORR_SUPPORT
endif
ifneq ($(filter "tb8791tp1_64_titan_javan_tiger" "tb8791tp1_64_titan_javan_tiger_wifi", \
$(CONFIG_ARCH_MTK_PROJECT)),)
ccflags-y += -DCONFIG_TB8791TP1_TITAN_JAVAN_TIGER
endif