Commit ffb2e008 authored by Guillaume Tucker's avatar Guillaume Tucker Committed by Mauro Carvalho Chehab
Browse files

media: Kconfig: include test_drivers with MEDIA_TEST_SUPPORT



Include test_drivers/Kconfig when MEDIA_TEST_SUPPORT is enabled rather
than MEDIA_PLATFORM_SUPPORT.  Test drivers should not depend on
platform drivers to be enabled.

Reported-by: default avatar"kernelci.org bot" <bot@kernelci.org>
Fixes: 4b32216a ("media: split test drivers from platform directory")
Signed-off-by: default avatarGuillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent df823a82
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -226,10 +226,13 @@ source "drivers/media/common/Kconfig"

if MEDIA_PLATFORM_SUPPORT
source "drivers/media/platform/Kconfig"
source "drivers/media/test_drivers/Kconfig"
source "drivers/media/mmc/Kconfig"
endif

if MEDIA_TEST_SUPPORT
source "drivers/media/test_drivers/Kconfig"
endif

source "drivers/media/firewire/Kconfig"

endmenu
+0 −4
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

if MEDIA_TEST_SUPPORT

menuconfig V4L_TEST_DRIVERS
	bool "V4L test drivers"
	depends on VIDEO_DEV
@@ -24,5 +22,3 @@ config VIDEO_VIM2M
source "drivers/media/test_drivers/vicodec/Kconfig"

endif #V4L_TEST_DRIVERS

endif #MEDIA_TEST_SUPPORT