2019-05-24 18:25:31 -04:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
2019-05-24 20:56:58 -04:00
|
|
|
# auto-detect subdirs
|
|
|
|
ifeq ($(CONFIG_ARCH_KONA), y)
|
|
|
|
include $(srctree)/techpack/camera/config/konacamera.conf
|
|
|
|
endif
|
|
|
|
|
2019-07-09 20:09:33 -04:00
|
|
|
ifeq ($(CONFIG_ARCH_LITO), y)
|
|
|
|
include $(srctree)/techpack/camera/config/litocamera.conf
|
|
|
|
endif
|
|
|
|
|
2019-08-21 02:02:15 -04:00
|
|
|
ifeq ($(CONFIG_ARCH_BENGAL), y)
|
|
|
|
include $(srctree)/techpack/camera/config/bengalcamera.conf
|
|
|
|
endif
|
|
|
|
|
2019-07-09 20:09:33 -04:00
|
|
|
ifeq ($(CONFIG_ARCH_KONA), y)
|
|
|
|
LINUXINCLUDE += \
|
|
|
|
-include $(srctree)/techpack/camera/config/konacameraconf.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_LITO), y)
|
|
|
|
LINUXINCLUDE += \
|
|
|
|
-include $(srctree)/techpack/camera/config/litocameraconf.h
|
|
|
|
endif
|
|
|
|
|
2019-08-21 02:02:15 -04:00
|
|
|
ifeq ($(CONFIG_ARCH_BENGAL), y)
|
|
|
|
LINUXINCLUDE += \
|
|
|
|
-include $(srctree)/techpack/camera/config/bengalcameraconf.h
|
|
|
|
endif
|
|
|
|
|
2019-07-09 20:09:33 -04:00
|
|
|
ifdef CONFIG_SPECTRA_CAMERA
|
2019-05-24 20:56:58 -04:00
|
|
|
# Use USERINCLUDE when you must reference the UAPI directories only.
|
|
|
|
USERINCLUDE += \
|
2019-07-09 20:09:33 -04:00
|
|
|
-I$(srctree)/techpack/camera/include/uapi
|
2019-05-24 20:56:58 -04:00
|
|
|
|
|
|
|
# Use LINUXINCLUDE when you must reference the include/ directory.
|
|
|
|
# Needed to be compatible with the O= option
|
|
|
|
LINUXINCLUDE += \
|
|
|
|
-I$(srctree)/techpack/camera/include/uapi \
|
|
|
|
-I$(srctree)/techpack/camera/include
|
|
|
|
obj-y += drivers/
|
2019-07-09 20:09:33 -04:00
|
|
|
else
|
|
|
|
$(info Target not found)
|
|
|
|
endif
|