Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. subdir-ccflags-y += -Werror
  2. mediatek-drm-y := mtk_drm_drv.o \
  3. mtk_disp_color.o \
  4. mtk_disp_ccorr.o \
  5. mtk_disp_gamma.o \
  6. mtk_disp_aal.o \
  7. mtk_disp_dither.o \
  8. mtk_disp_ovl.o \
  9. mtk_disp_rdma.o \
  10. mtk_disp_rsz.o \
  11. mtk_disp_wdma.o \
  12. mtk_drm_crtc.o \
  13. mtk_drm_ddp.o \
  14. mtk_drm_ddp_addon.o \
  15. mtk_drm_ddp_comp.o \
  16. mtk_drm_fb.o \
  17. mtk_drm_gem.o \
  18. mtk_drm_plane.o \
  19. mtk_dsi.o \
  20. mtk_mipi_tx.o \
  21. mtk_writeback.o \
  22. mtk_sync.o \
  23. mtk_fence.o \
  24. mtk_drm_session.o \
  25. mtk_dump.o \
  26. mtk_debug.o \
  27. mtk_layering_rule.o \
  28. mtk_layering_rule_base.o \
  29. mtk_rect.o \
  30. mtk_drm_mmp.o \
  31. mtk_drm_trace.o \
  32. mtk_panel_ext.o \
  33. mtk_drm_helper.o \
  34. mtk_drm_lowpower.o \
  35. mtk_disp_postmask.o \
  36. mtk_drm_assert.o \
  37. mtk_drm_fbconsole.o \
  38. mtk_disp_recovery.o \
  39. mtk_disp_pmqos.o \
  40. mtk_disp_dsc.o \
  41. mtk_drm_arr.o \
  42. mtk_disp_merge.o \
  43. mtk_dmdp_aal.o \
  44. mtk_fbconfig_kdebug.o
  45. ifeq ($(CONFIG_DRM_MEDIATEK_DEBUG_FS),y)
  46. mediatek-drm-y += mtk_drm_debugfs.o
  47. endif
  48. ifeq ($(CONFIG_MTK_HDMI_SUPPORT), y)
  49. obj-y += mtk_dp_intf.o \
  50. mtk_dp.o \
  51. mtk_dp_hal.o \
  52. mtk_dp_debug.o
  53. ifeq (yy, $(CONFIG_MTK_TEE_GP_SUPPORT)$(CONFIG_TRUSTONIC_TEE_SUPPORT))
  54. obj-y += ca/
  55. ccflags-y += -DDPTX_HDCP_ENABLE
  56. obj-y += mtk_dp_hdcp1x.o \
  57. mtk_dp_hdcp2.o
  58. endif
  59. endif
  60. mediatek-drm-$(CONFIG_DRM_FBDEV_EMULATION) += mtk_drm_fbdev.o
  61. obj-$(CONFIG_DRM_MEDIATEK) += mediatek-drm.o
  62. mediatek-drm-hdmi-objs := mtk_cec.o \
  63. mtk_hdmi.o \
  64. mtk_hdmi_ddc.o \
  65. mtk_mt8173_hdmi_phy.o
  66. obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o \
  67. mtk_dpi.o \
  68. mtk_lvds.o \
  69. mtk_lvds_phy.o
  70. ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM) \
  71. -I$(srctree)/drivers/misc/mediatek/smi/ \
  72. -I$(srctree)/drivers/misc/mediatek/mmp/ \
  73. -I$(srctree)/drivers/misc/mediatek/mmdvfs/ \
  74. -I$(srctree)/drivers/iommu/ \
  75. -I$(srctree)/drivers/devfreq/ \
  76. -I$(srctree)/drivers/gpu/drm/ \
  77. -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/ \
  78. -I$(srctree)/drivers/misc/mediatek/include/mt-plat \
  79. -I$(srctree)/drivers/misc/mediatek/leds/ \
  80. -I$(srctree)/drivers/misc/mediatek/leds/$(MTK_PLATFORM) \
  81. -I$(srctree)/drivers/misc/mediatek/cmdq/mailbox/
  82. ccflags-$(CONFIG_MTK_CMDQ_MBOX_EXT) += -I$(srctree)/drivers/misc/mediatek/cmdq/mailbox
  83. subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion/ \
  84. -I$(srctree)/drivers/staging/android/ion/mtk
  85. ifeq (y, $(filter y, $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893) $(CONFIG_MACH_MT6873) $(CONFIG_MACH_MT6853)))
  86. ccflags-y += -DDRM_MMPATH
  87. ccflags-y += -DNOT_SUPPORT_CABC_HW
  88. ccflags-y += -DDISP_MDP_COLOR_ON
  89. ccflags-y += -DCCORR_SUPPORT
  90. endif
  91. ifeq (y, $(filter y, $(CONFIG_MACH_MT6833)))
  92. ccflags-y += -DNOT_SUPPORT_CABC_HW
  93. ccflags-y += -DDISP_MDP_COLOR_ON
  94. ccflags-y += -DCCORR_SUPPORT
  95. endif