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