mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-08 23:04:35 +08:00
2da185d6fe
The addition of MT8183 support added a dependency on the SCP remoteproc
module. However the initial patch used the "select" Kconfig directive,
which may result in the SCP module to not be compiled if remoteproc was
disabled. In such a case, mtk-vcodec would try to link against
non-existent SCP symbols. "select" was clearly misused here as explained
in kconfig-language.txt.
Replace this by a "depends" directive on at least one of the VPU and
SCP modules, to allow the driver to be compiled as long as one of these
is enabled, and adapt the code to support this new scenario.
Also adapt the Kconfig text to explain the extra requirements for MT8173
and MT8183.
Reported-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: bf1d556ad4
("media: mtk-vcodec: abstract firmware interface")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
36 lines
799 B
Makefile
36 lines
799 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \
|
|
mtk-vcodec-enc.o \
|
|
mtk-vcodec-common.o
|
|
|
|
mtk-vcodec-dec-y := vdec/vdec_h264_if.o \
|
|
vdec/vdec_vp8_if.o \
|
|
vdec/vdec_vp9_if.o \
|
|
mtk_vcodec_dec_drv.o \
|
|
vdec_drv_if.o \
|
|
vdec_vpu_if.o \
|
|
mtk_vcodec_dec.o \
|
|
mtk_vcodec_dec_pm.o \
|
|
|
|
mtk-vcodec-enc-y := venc/venc_vp8_if.o \
|
|
venc/venc_h264_if.o \
|
|
mtk_vcodec_enc.o \
|
|
mtk_vcodec_enc_drv.o \
|
|
mtk_vcodec_enc_pm.o \
|
|
venc_drv_if.o \
|
|
venc_vpu_if.o \
|
|
|
|
|
|
mtk-vcodec-common-y := mtk_vcodec_intr.o \
|
|
mtk_vcodec_util.o \
|
|
mtk_vcodec_fw.o \
|
|
|
|
ifneq ($(CONFIG_VIDEO_MEDIATEK_VCODEC_VPU),)
|
|
mtk-vcodec-common-y += mtk_vcodec_fw_vpu.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_VIDEO_MEDIATEK_VCODEC_SCP),)
|
|
mtk-vcodec-common-y += mtk_vcodec_fw_scp.o
|
|
endif
|