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:

committed by
Gerrit - the friendly Code Review server

parent
d6dec0c723
commit
79505f878d
@@ -1,7 +1,13 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
TARGET_VIDC_ENABLE := false
|
||||||
ifeq ($(TARGET_USES_QMAA),false)
|
ifeq ($(TARGET_USES_QMAA),false)
|
||||||
|
TARGET_VIDC_ENABLE := true
|
||||||
|
endif
|
||||||
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
|
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_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/video-driver
|
||||||
VIDEO_SELECT := CONFIG_MSM_VIDC_V4L2=m
|
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)
|
# BOARD_VENDOR_KERNEL_MODULES += $(LOCAL_MODULE_PATH)/$(LOCAL_MODULE)
|
||||||
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
@@ -1,7 +1,14 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
# Build video kernel driver
|
TARGET_VIDC_ENABLE := false
|
||||||
ifeq ($(TARGET_USES_QMAA),false)
|
ifeq ($(TARGET_USES_QMAA),false)
|
||||||
|
TARGET_VIDC_ENABLE := true
|
||||||
|
endif
|
||||||
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
|
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
|
||||||
|
TARGET_VIDC_ENABLE := true
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Build video kernel driver
|
||||||
|
ifeq ($(TARGET_VIDC_ENABLE),true)
|
||||||
ifneq ($(TARGET_KERNEL_DLKM_DISABLE),true)
|
ifneq ($(TARGET_KERNEL_DLKM_DISABLE),true)
|
||||||
ifneq ($(TARGET_BOARD_AUTO),true)
|
ifneq ($(TARGET_BOARD_AUTO),true)
|
||||||
ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
|
ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
|
||||||
@@ -12,4 +19,3 @@ endif
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
TARGET_VIDC_ENABLE := false
|
||||||
ifeq ($(TARGET_USES_QMAA),false)
|
ifeq ($(TARGET_USES_QMAA),false)
|
||||||
|
TARGET_VIDC_ENABLE := true
|
||||||
|
endif
|
||||||
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
|
ifeq ($(TARGET_USES_QMAA_OVERRIDE_VIDEO),true)
|
||||||
|
TARGET_VIDC_ENABLE := true
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_VIDC_ENABLE),true)
|
||||||
PRODUCT_PACKAGES += msm_video.ko
|
PRODUCT_PACKAGES += msm_video.ko
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
Reference in New Issue
Block a user