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)
26 lines
927 B
Makefile
26 lines
927 B
Makefile
subdir-ccflags-y +=
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/smi
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/cmdq
|
|
|
|
obj-$(CONFIG_VIDEO_MEDIATEK_VCU) += mtk_vcu.o mtk_vcodec_mem.o
|
|
ccflags-y += -I$(srctree)/arch/arm
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat
|
|
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6893)))
|
|
MTK_PLATFORM := mt6885
|
|
endif
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6833)))
|
|
MTK_PLATFORM := mt6833
|
|
endif
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6877)))
|
|
MTK_PLATFORM := mt6877
|
|
endif
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6781)))
|
|
MTK_PLATFORM := mt6781
|
|
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 |