obj-y := fdvt_dummy.o MTK_CUSTOM_PATH := $(srctree)/drivers/misc/mediatek #FDVT 3.5 ifeq ($(CONFIG_MACH_MT6763),y) $(info FDVT: Drv use 3.5 folder) MTKCAM_FDVT_VERSION := 3.5 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/3.5 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/3.5/inc obj-y += 3.5/ endif ifeq ($(CONFIG_MACH_MT6761),y) $(info FDVT: Drv use 3.5 folder) MTKCAM_FDVT_VERSION := 3.5 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/3.5 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/3.5/inc obj-y += 3.5/ endif #FDVT 4.0 ifeq ($(CONFIG_MACH_MT6758),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6757),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6799),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6759),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6775),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6771),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6765),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif ifeq ($(CONFIG_MACH_MT6768),y) $(info FDVT: Drv use 4.0 folder) MTKCAM_FDVT_VERSION := 4.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/4.0/inc obj-y += 4.0/ endif #FDVT 5.0 ifeq ($(CONFIG_MACH_MT8168),y) $(info FDVT: Drv use 5.0 folder) MTKCAM_FDVT_VERSION := 5.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.0/inc obj-y += 5.0/ endif ifeq ($(CONFIG_MACH_MT6785),y) $(info FDVT: Drv use mt6785 folder) MTKCAM_FDVT_VERSION := 5.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/mt6785 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/mt6785/inc obj-y += mt6785/ endif ifeq ($(CONFIG_MACH_MT6779),y) $(info FDVT: Drv use 5.0 folder) MTKCAM_FDVT_VERSION := 5.0 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.0 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.0/inc obj-y += 5.0/ endif #FDVT 5.1 ifeq ($(CONFIG_MACH_MT6893),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6885),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6873),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6853),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6833),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6877),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6781),y) $(info FDVT: Drv use 5.1 folder) MTKCAM_FDVT_VERSION := 5.1 MTKCAM_FDVT_PATH := $(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1 subdir-ccflags-y += -I$(MTK_CUSTOM_PATH)/cameraisp/fdvt/5.1/inc obj-y += 5.1/ endif ifeq ($(CONFIG_MACH_MT6765),y) MTK_FD_LARB := 2 else ifeq ($(CONFIG_MACH_MT6768),y) MTK_FD_LARB := 2 else ifeq ($(CONFIG_MACH_MT6771),y) MTK_FD_LARB := 5 else ifeq ($(CONFIG_MACH_MT6763),y) MTK_FD_LARB := 1 else ifeq ($(CONFIG_MACH_MT6761),y) MTK_FD_LARB := 2 endif ifeq ($(strip $(CONFIG_MTK_CAM_GENIEZONE_SUPPORT)),y) MTK_SECURE_FD_SUPPORT := 1 else MTK_SECURE_FD_SUPPORT := 0 endif subdir-ccflags-y += -DMTK_FD_LARB=$(MTK_FD_LARB) subdir-ccflags-y += -DMTK_SECURE_FD_SUPPORT=$(MTK_SECURE_FD_SUPPORT)