OSDN Git Service

media: staging/imx: Allow driver to build if COMPILE_TEST is enabled
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 19 Feb 2019 09:01:04 +0000 (04:01 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 23 May 2019 16:39:13 +0000 (12:39 -0400)
The driver has runtime but no build time dependency with IMX_IPUV3_CORE,
so can be built for testing purposes if COMPILE_TEST option is enabled.

This is useful to have more build coverage and make sure that the driver
is not affected by changes that could cause build regressions.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/Kconfig

index 4c72634..ad3d7df 100644 (file)
@@ -2,7 +2,7 @@
 config VIDEO_IMX_MEDIA
        tristate "i.MX5/6 V4L2 media core driver"
        depends on ARCH_MXC || COMPILE_TEST
-       depends on MEDIA_CONTROLLER && VIDEO_V4L2 && IMX_IPUV3_CORE
+       depends on MEDIA_CONTROLLER && VIDEO_V4L2 && (IMX_IPUV3_CORE || COMPILE_TEST)
        depends on VIDEO_V4L2_SUBDEV_API
        depends on HAS_DMA
        select VIDEOBUF2_DMA_CONTIG