| # | |
| # 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. | |
| # | |
| obj-y := camerawpe_dummy.o | |
| MTK_WPE_COUNT := 1 | |
| ifeq ($(CONFIG_MACH_MT6775),y) | |
| obj-y += $(subst ",,isp_50)/ | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6771),y) | |
| obj-y += $(subst ",,isp_50)/ | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6779),y) | |
| obj-y += $(subst ",,mt6779)/ | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6785),y) | |
| obj-y += $(subst ",,isp_50)/ | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6885),y) | |
| obj-y += $(subst ",,isp_6s)/ | |
| MTK_WPE_COUNT := 2 | |
| endif | |
| ifeq ($(CONFIG_MTK_CAMERA_ISP_VER),"isp6s") | |
| obj-$(CONFIG_MTK_CAMERA_ISP_WPE_SUPPORT) += isp_6s/ | |
| MTK_WPE_COUNT := 1 | |
| subdir-ccflags-y += -DWPE_B_ONLY | |
| ifeq ($(CONFIG_MTK_CAMERA_ISP_PLATFORM),"mt6853") | |
| subdir-ccflags-y += -DWPE_GKI_IMG1_LARB_ON | |
| endif | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6873),y) | |
| obj-y += $(subst ",,isp_6s)/ | |
| MTK_WPE_COUNT := 1 | |
| subdir-ccflags-y += -DWPE_B_ONLY | |
| endif | |
| ifeq ($(CONFIG_MACH_MT6853),y) | |
| obj-y += $(subst ",,isp_6s)/ | |
| MTK_WPE_COUNT := 1 | |
| subdir-ccflags-y += -DWPE_B_ONLY | |
| subdir-ccflags-y += -DFORCE_IMG1_ON | |
| endif | |
| subdir-ccflags-y += -DMTK_WPE_COUNT=$(MTK_WPE_COUNT) | |