Files
Michael Bestas 27b2bf7858 Add 'techpack/camera/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/camera
git-subtree-mainline: 5755ee5bfb
git-subtree-split: 2577e90e94
Change-Id: Ice99c5978fdb370431f7f20f54d62e77b555964c
2023-10-10 18:14:09 +03:00

51 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# auto-detect subdirs
ifeq ($(CONFIG_SPECTRA_CAMERA:M=m), m)
SUFFIX_SPECTRA_CAMERA:=-gki
else
SUFFIX_SPECTRA_CAMERA:=
endif
ifeq ($(CONFIG_ARCH_KONA), y)
include $(srctree)/techpack/camera/config/konacamera$(SUFFIX_SPECTRA_CAMERA).conf
endif
ifeq ($(CONFIG_ARCH_LITO), y)
include $(srctree)/techpack/camera/config/litocamera$(SUFFIX_SPECTRA_CAMERA).conf
endif
ifeq ($(CONFIG_ARCH_BENGAL), y)
include $(srctree)/techpack/camera/config/bengalcamera.conf
endif
ifeq ($(CONFIG_ARCH_KONA), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera/config/konacameraconf$(SUFFIX_SPECTRA_CAMERA).h
endif
ifeq ($(CONFIG_ARCH_LITO), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera/config/litocameraconf$(SUFFIX_SPECTRA_CAMERA).h
endif
ifeq ($(CONFIG_ARCH_BENGAL), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera/config/bengalcameraconf.h
endif
ifdef CONFIG_SPECTRA_CAMERA
# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE += \
-I$(srctree)/techpack/camera/include/uapi
# 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/
else
$(info Target not found)
endif