Files
android_kernel_samsung_sm86…/video_kernel_board.mk
Mihir Ganu 79505f878d 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>
2021-12-03 13:46:52 -08:00

22 rindas
552 B
Makefile

# 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
# Build video kernel driver
ifeq ($(TARGET_VIDC_ENABLE),true)
ifneq ($(TARGET_KERNEL_DLKM_DISABLE),true)
ifneq ($(TARGET_BOARD_AUTO),true)
ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/msm_video.ko
BUILD_VIDEO_TECHPACK_SOURCE := true
endif
endif
endif
endif