#
# Copyright (C) 2015 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.
#

include $(KERNEL_MIXED_BUILD_PATH)/Kbuild.common

obj-m += aee_drm.o
aee_drm-y :=
aee_drm-y += mtk_drm_assert.o
aee_drm-y += mtk_drm_fbconsole.o
ifneq ($(CONFIG_FONT_8x16), y)
aee_drm-y += font_8x16.o
endif

ccflags-y += -I$(MDRV_MTKDRV_STIDRM_SRC_DIR)
ccflags-y += -I$(KERNEL_MIXED_BUILD_PATH)/drivers/gpu/drm/mediatek/MTK_TV/merak
ccflags-y += -I$(KERNEL_MIXED_BUILD_PATH)/drivers/gpu/drm/mediatek/MTK_TV/merak/video_pnl
ccflags-y += -I$(KERNEL_MIXED_BUILD_PATH)/drivers/iommu/mtk_iommu_dtv/
ccflags-y += -I$(KERNEL_MIXED_BUILD_PATH)/drivers/misc/mediatek/aee/rs/
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/hwreg/render/video_pnl
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/hwreg/common
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/hwreg
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/common
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/common/linux_kernel
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/scriptmgt
ccflags-y += -I$(REPO_ROOT_PATH)/mtktv_drivers/ree/include/disp_rm
ccflags-y += -I$(srctree)/drivers/dma-buf
