kernel_samsung_a34x-permissive/drivers/misc/mediatek/imgsensor/src/Makefile

37 lines
1.3 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
subdir-ccflags-y += -I$(srctree)/drivers/i2c/busses/ \
-I$(srctree)/drivers/misc/mediatek/ccu/inc
MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
ARCH_MTK_PROJECT := $(subst ",,$(CONFIG_ARCH_MTK_PROJECT))
MTK_PLATFORM_PATH_ROOT := $(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)
MTK_PROJECT_PATH_ROOT := $(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)
ifeq ($(CONFIG_MACH_MT6781),y)
CONFIG_MTK_PLATFORM_SENSOR := mt6781
else
CONFIG_MTK_PLATFORM_SENSOR := $(CONFIG_MTK_PLATFORM)
endif
subdir-ccflags-y += -I$(MTK_PROJECT_PATH_ROOT)/camera/camera
MTK_DRIVER_PATH := $(srctree)/drivers/misc/mediatek
subdir-ccflags-y += -I$(MTK_DRIVER_PATH)/camera/$(MTK_PLATFORM) \
-I$(MTK_DRIVER_PATH)/imgsensor/inc \
-I$(MTK_DRIVER_PATH)/cam_cal/inc \
-I$(MTK_DRIVER_PATH)/cam_ois/inc \
-I$(MTK_DRIVER_PATH)/lens \
-I$(MTK_DRIVER_PATH)/smi \
-I$(MTK_DRIVER_PATH)/include/mt-plat/$(MTK_PLATFORM)/include/mach \
-I$(MTK_DRIVER_PATH)/imgsensor/src/$(CONFIG_MTK_PLATFORM_SENSOR)
CUSTOM_KERNEL_FLAGS := $(addprefix -D, $(shell echo \
$(CONFIG_CUSTOM_KERNEL_IMGSENSOR) | tr a-z A-Z))
subdir-ccflags-y += $(CUSTOM_KERNEL_FLAGS)
obj-y += $(subst ",,$(CONFIG_MTK_PLATFORM_SENSOR))/