linux/drivers/media/test_drivers/Kconfig
Mauro Carvalho Chehab 6268b35139 media: Kconfig: fix selection for test drivers
There are some long-time mistakes related to build test
drivers, with regards to depends on/select. Also, as we
now want to build any test driver without needing to
enable anything else, change the logic in order to properly
filter them.

Please notice that the PCI skeleton is somewhat an
exception, as it requires to select *both* SAMPLES and
MEDIA_TEST_SUPPORT. I almost changed it to be either one,
but decided to keep it as-is, as this is something that
we don't really need to be included on any distribution.

The only reason for someone to build it is for COMPILE_TEST
purposes.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-04-14 10:29:05 +02:00

29 lines
602 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
if MEDIA_TEST_SUPPORT
menuconfig V4L_TEST_DRIVERS
bool "V4L test drivers"
depends on VIDEO_DEV
if V4L_TEST_DRIVERS
source "drivers/media/test_drivers/vimc/Kconfig"
source "drivers/media/test_drivers/vivid/Kconfig"
config VIDEO_VIM2M
tristate "Virtual Memory-to-Memory Driver"
depends on VIDEO_DEV && VIDEO_V4L2
select VIDEOBUF2_VMALLOC
select V4L2_MEM2MEM_DEV
help
This is a virtual test device for the memory-to-memory driver
framework.
source "drivers/media/test_drivers/vicodec/Kconfig"
endif #V4L_TEST_DRIVERS
endif #MEDIA_TEST_SUPPORT