Camera: Add support for LITO target
This change add config support for LITO target. Change-Id: Ia4a191c862f9886bb35fbd792ae786d027d5cc7e Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
485b7d2faa
commit
05b312bca9
30
Makefile
30
Makefile
@@ -5,19 +5,31 @@ ifeq ($(CONFIG_ARCH_KONA), y)
|
|||||||
include $(srctree)/techpack/camera/config/konacamera.conf
|
include $(srctree)/techpack/camera/config/konacamera.conf
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Use USERINCLUDE when you must reference the UAPI directories only.
|
ifeq ($(CONFIG_ARCH_LITO), y)
|
||||||
USERINCLUDE += \
|
include $(srctree)/techpack/camera/config/litocamera.conf
|
||||||
-I$(srctree)/techpack/camera/include/uapi
|
endif
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_KONA), y)
|
ifeq ($(CONFIG_ARCH_KONA), y)
|
||||||
LINUXINCLUDE += \
|
LINUXINCLUDE += \
|
||||||
-include $(srctree)/techpack/camera/config/konacameraconf.h
|
-include $(srctree)/techpack/camera/config/konacameraconf.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_LITO), y)
|
||||||
|
LINUXINCLUDE += \
|
||||||
|
-include $(srctree)/techpack/camera/config/litocameraconf.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/
|
obj-y += drivers/
|
||||||
|
else
|
||||||
|
$(info Target not found)
|
||||||
|
endif
|
||||||
|
4
config/litocamera.conf
Normal file
4
config/litocamera.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
# Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||||
|
|
||||||
|
export CONFIG_SPECTRA_CAMERA=y
|
7
config/litocameraconf.h
Normal file
7
config/litocameraconf.h
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define CONFIG_SPECTRA_CAMERA 1
|
||||||
|
|
Reference in New Issue
Block a user