Files
Michael Bestas 8bb9a8ff29 techpack: camera-xiaomi*: Correct paths
Change-Id: Ia65db59b46f489dfc7b88465ba99246d5f5af460
2023-05-02 01:31:31 +02:00

45 lines
1.3 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# auto-detect subdirs
ifeq ($(CONFIG_ARCH_KONA), y)
include $(srctree)/techpack/camera-xiaomi-tablet/config/konacamera.conf
endif
ifeq ($(CONFIG_ARCH_LITO), y)
include $(srctree)/techpack/camera-xiaomi-tablet/config/litocamera.conf
endif
ifeq ($(CONFIG_ARCH_BENGAL), y)
include $(srctree)/techpack/camera-xiaomi-tablet/config/bengalcamera.conf
endif
ifeq ($(CONFIG_ARCH_KONA), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera-xiaomi-tablet/config/konacameraconf.h
endif
ifeq ($(CONFIG_ARCH_LITO), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera-xiaomi-tablet/config/litocameraconf.h
endif
ifeq ($(CONFIG_ARCH_BENGAL), y)
LINUXINCLUDE += \
-include $(srctree)/techpack/camera-xiaomi-tablet/config/bengalcameraconf.h
endif
ifdef CONFIG_SPECTRA_CAMERA
# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE += \
-I$(srctree)/techpack/camera-xiaomi-tablet/include/uapi
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
LINUXINCLUDE += \
-I$(srctree)/techpack/camera-xiaomi-tablet/include/uapi \
-I$(srctree)/techpack/camera-xiaomi-tablet/include
obj-y += drivers/
else
$(info Target not found)
endif