From 96cf4d94e438d355a4c3086fd3bd851eb6ff8e3a Mon Sep 17 00:00:00 2001 From: Govindaraj Rajagopal Date: Tue, 14 May 2019 15:19:35 +0530 Subject: [PATCH] techpack: video: add support for lito in makefile This change adds support to compile video driver project for lito. Change-Id: I398fd8f37cb42bb20f849f17284c377001c14dde Signed-off-by: Govindaraj Rajagopal --- Makefile | 9 +++++++++ config/litovid.conf | 1 + config/litovidconf.h | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 config/litovid.conf create mode 100644 config/litovidconf.h diff --git a/Makefile b/Makefile index d4981863d8de..0fcf3f6df3da 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,13 @@ ifeq ($(CONFIG_ARCH_KONA), y) LINUXINCLUDE += -include $(srctree)/techpack/video/config/konavidconf.h endif +# auto-detect subdirs +ifeq ($(CONFIG_ARCH_LITO), y) +include $(srctree)/techpack/video/config/litovid.conf +endif + +ifeq ($(CONFIG_ARCH_LITO), y) +LINUXINCLUDE += -include $(srctree)/techpack/video/config/litovidconf.h +endif + obj-y +=msm/ diff --git a/config/litovid.conf b/config/litovid.conf new file mode 100644 index 000000000000..efb4eedfb73e --- /dev/null +++ b/config/litovid.conf @@ -0,0 +1 @@ +export CONFIG_MSM_VIDC_V4L2=y diff --git a/config/litovidconf.h b/config/litovidconf.h new file mode 100644 index 000000000000..78d6c57a6920 --- /dev/null +++ b/config/litovidconf.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + */ + +#define CONFIG_MSM_VIDC_V4L2 1