video: driver: compile video driver

Add compilation checks and compile video driver
based on flags.

Change-Id: Ia4712b411eb86e0ef7d153ab04461de9c2f909f9
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
This commit is contained in:
Mihir Ganu
2021-12-02 20:39:13 -08:00
committed by Gerrit - the friendly Code Review server
parent d6dec0c723
commit 79505f878d
3 changed files with 22 additions and 5 deletions

View File

@@ -1,7 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-only
TARGET_VIDC_ENABLE := false
ifeq ($(TARGET_USES_QMAA),false)
TARGET_VIDC_ENABLE := true
endif
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
TARGET_VIDC_ENABLE := true
endif
ifeq ($(TARGET_VIDC_ENABLE),true)
VIDEO_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/video-driver
VIDEO_SELECT := CONFIG_MSM_VIDC_V4L2=m
@@ -37,4 +43,3 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(call intermediates-dir-for,DLKM,mmrm-module-s
# BOARD_VENDOR_KERNEL_MODULES += $(LOCAL_MODULE_PATH)/$(LOCAL_MODULE)
include $(DLKM_DIR)/Build_external_kernelmodule.mk
endif
endif