
Top-level Makefile doesn't export techpack configs. As such, we must revert to generating our own conf.h file instead of relying on autoconf.h. This has the side-effect of not allowing IS_REACHABLE/IS_ENABLED macro's from working on configs enabled within a techpack. CRs-Fixed: 2584631 Change-Id: I9c35b305b81c5a6a6892ca87ace9f69192fcca5b Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
54 rader
1.4 KiB
Makefile
54 rader
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# auto-detect subdirs
|
|
ifeq ($(CONFIG_ARCH_KONA), y)
|
|
include $(srctree)/techpack/camera/config/konacamera.conf
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_LITO), y)
|
|
include $(srctree)/techpack/camera/config/litocamera.conf
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_BENGAL), y)
|
|
include $(srctree)/techpack/camera/config/bengalcamera.conf
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_LAHAINA), y)
|
|
include $(srctree)/techpack/camera/config/lahainacamera.conf
|
|
endif
|
|
|
|
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
|
|
|
|
ifeq ($(CONFIG_ARCH_BENGAL), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/camera/config/bengalcameraconf.h
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_LAHAINA), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/camera/config/lahainacameraconf.h
|
|
endif
|
|
|
|
ifneq (,$(filter $(CONFIG_SPECTRA_CAMERA), y m))
|
|
# 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
|