diff --git a/Makefile b/Makefile index f844d98cbd..b7c0d7853c 100644 --- a/Makefile +++ b/Makefile @@ -5,19 +5,31 @@ ifeq ($(CONFIG_ARCH_KONA), y) include $(srctree)/techpack/camera/config/konacamera.conf endif -# 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 +ifeq ($(CONFIG_ARCH_LITO), y) +include $(srctree)/techpack/camera/config/litocamera.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 + +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 diff --git a/config/konacameraconf.h b/config/konacameraconf.h index e0cf514fe3..875b95587a 100644 --- a/config/konacameraconf.h +++ b/config/konacameraconf.h @@ -1,8 +1,8 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright (c) 2019, The Linux Foundation. All rights reserved. - */ - - -#define CONFIG_SPECTRA_CAMERA 1 - +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + */ + + +#define CONFIG_SPECTRA_CAMERA 1 + diff --git a/config/litocamera.conf b/config/litocamera.conf new file mode 100644 index 0000000000..451723eebc --- /dev/null +++ b/config/litocamera.conf @@ -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 diff --git a/config/litocameraconf.h b/config/litocameraconf.h new file mode 100644 index 0000000000..1a77140180 --- /dev/null +++ b/config/litocameraconf.h @@ -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 +