media: Kconfig: fix selection for test drivers
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Mar 2020 14:47:25 +0000 (15:47 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 08:29:05 +0000 (10:29 +0200)
commit6268b351394450e9168a9281a9279f7cb420669f
treee7408e8df61f52f1181dd83cb45fa05480199e7a
parenta3b91d8bd1e034c8ed89d3f55243478af97a0a52
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>
drivers/media/Kconfig
drivers/media/dvb-frontends/Kconfig
drivers/media/pci/Kconfig
drivers/media/test_drivers/Kconfig