Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

111 lines
2.9 KiB
Makefile

#
# 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.
#
# drivers/image/jpeg/Makefile
ccflags-y = -DSDEBUG_T
ifeq ($(CONFIG_MACH_MT6757),y)
ccflags-y += -DJPEG_DEC_DRIVER
endif
ifeq ($(CONFIG_MACH_MT6799),y)
ccflags-y += -DJPEG_DEC_DRIVER
endif
ifeq ($(CONFIG_MACH_MT6765),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DQOS_MT6765_SUPPORT
ccflags-y += -DPLATFORM_MT6765
endif
ifeq ($(CONFIG_MACH_MT6761),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DQOS_MT6761_SUPPORT
ccflags-y += -DPLATFORM_MT6761
endif
ifeq ($(CONFIG_MACH_MT6779),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DQOS_MT6779_SUPPORT
ccflags-y += -DPLATFORM_MT6779
endif
ifeq ($(CONFIG_MACH_MT6785),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DQOS_MT6785_SUPPORT
ccflags-y += -DPLATFORM_MT6785
endif
ifeq ($(CONFIG_MACH_MT6768),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DPLATFORM_MT6767
endif
ifeq ($(CONFIG_MACH_MT6739),y)
ccflags-y += -DPLATFORM_MT6739
endif
ifeq ($(CONFIG_MACH_MT6771),y)
ccflags-y += -DPLATFORM_MT6771
endif
ifeq ($(CONFIG_MACH_MT6767),y)
ccflags-y += -DSMI_CG_SUPPORT
ccflags-y += -DPLATFORM_MT6768
endif
ifeq (y, $(filter y,$(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893)))
ccflags-y += -DJPEG_HYBRID_DEC_DRIVER
endif
ifeq (,$(filter y,$(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893)))
ccflags-y += -DJPEG_ENC_DRIVER
endif
ifeq ($(CONFIG_MACH_MT8163),y)
ccflags-y += -DJPEG_PM_DOMAIN_ENABLE
endif
ifeq ($(CONFIG_MACH_MT8173),y)
ccflags-y += -DJPEG_DEC_DRIVER
ccflags-y += -DJPEG_PM_DOMAIN_ENABLE
endif
ifeq ($(CONFIG_MACH_MT8168),y)
ccflags-y += -DJPEG_ENC_DRIVER
ccflags-y += -DJPEG_PM_DOMAIN_ENABLE
ifeq ($(CONFIG_MTK_IN_HOUSE_TEE_SUPPORT),y)
ccflags-y += -DCONFIG_MTK_SEC_JPEG_SUPPORT
endif
endif
ccflags-y += -I$(srctree)/drivers/misc/mediatek/smi/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/smi/$(MTK_PLATFORM)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/mmdvfs
ccflags-y += -I$(srctree)/drivers/staging/android/ion
ccflags-y += -I$(srctree)/drivers/staging/android/ion/mtk
#obj-$(CONFIG_MTK_JPEG) += jpeg_driver.o
obj-y += jpeg_driver.o
ifdef CONFIG_MTK_PSEUDO_M4U
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
ccflags-y += -I$(srctree)/drivers/iommu/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/smi/$(MTK_PLATFORM)
endif
#jpeg_driver-objs := jpeg_cmdq.o jpeg_drv_enc.o jpeg_drv_dec.o jpeg_drv.o
jpeg_driver-objs := jpeg_drv_enc.o jpeg_drv_dec.o jpeg_drv.o jpeg_ion.o
# EOF