video: driver: use QMAA flags for video driver compilation

Control video driver compilation based on QMAA flags.

Change-Id: I2cac1184538a7e7c0ef5c17eece59fd3f9e5b727
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
This commit is contained in:
Maheshwar Ajja
2021-10-07 18:05:04 -07:00
committed by Mahesh Kumar Sharma
parent b0542cb78c
commit e3ea015659
3 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
ifeq ($(TARGET_USES_QMAA),false)
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
VIDEO_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/video-driver
VIDEO_SELECT := CONFIG_MSM_VIDC_V4L2=m
@@ -34,3 +36,5 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(call intermediates-dir-for,DLKM,mmrm-module-s
# Include kp_module.ko in the /vendor/lib/modules (vendor.img)
# BOARD_VENDOR_KERNEL_MODULES += $(LOCAL_MODULE_PATH)/$(LOCAL_MODULE)
include $(DLKM_DIR)/Build_external_kernelmodule.mk
endif
endif

View File

@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
# Build video kernel driver
ifeq ($(TARGET_USES_QMAA),false)
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
ifneq ($(TARGET_KERNEL_DLKM_DISABLE),true)
ifneq ($(TARGET_BOARD_AUTO),true)
ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
@@ -9,3 +11,5 @@ BUILD_VIDEO_TECHPACK_SOURCE := true
endif
endif
endif
endif
endif

View File

@@ -1,2 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
ifeq ($(TARGET_USES_QMAA),false)
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
PRODUCT_PACKAGES += msm_video.ko
endif
endif