msm-vidc: Enable standalone compilation for video
Added support for compiling video as kernel loadable module. Change-Id: I5b9183d56d14e5e413b786b9ac2b449c6f8ab8ba Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
This commit is contained in:
32
Android.mk
Normal file
32
Android.mk
Normal file
@@ -0,0 +1,32 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
VIDEO_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/video-driver
|
||||
VIDEO_SELECT := CONFIG_MSM_VIDC_V4L2=m
|
||||
|
||||
# Build msm_video.ko
|
||||
###########################################################
|
||||
# This is set once per LOCAL_PATH, not per (kernel) module
|
||||
KBUILD_OPTIONS := VIDEO_ROOT=$(VIDEO_BLD_DIR)
|
||||
|
||||
KBUILD_OPTIONS += MODNAME=msm_video
|
||||
KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
|
||||
KBUILD_OPTIONS += $(VIDEO_SELECT)
|
||||
|
||||
###########################################################
|
||||
|
||||
DLKM_DIR := device/qcom/common/dlkm
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
# For incremental compilation
|
||||
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
|
||||
LOCAL_MODULE := msm_video.ko
|
||||
LOCAL_MODULE_KBUILD_NAME := msm_video.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_DEBUG_ENABLE := true
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
|
||||
# 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
|
Referens i nytt ärende
Block a user