mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 14:04:05 +08:00
6cdc31b2d7
Currently, the idems inside media Kconfig are out of order. Sort them using the script below: <script> use strict; use warnings; my %config; my @source; my $out; sub flush_config() { if (scalar %config) { for my $c (sort keys %config) { $out .= $config{$c} . "\n"; } %config = (); } return if (!scalar @source); $out .= "\n"; for my $s (sort @source) { $out .= $s; } $out .= "\n"; @source = (); } sub sort_kconfig($) { my $fname = shift; my $cur_config = ""; @source = (); $out = ""; %config = (); open IN, $fname or die; while (<IN>) { if (m/^config\s+(.*)/) { $cur_config = $1; $config{$cur_config} .= $_; } elsif (m/^source\s+(.*)/) { push @source, $_; } elsif (m/^\s+/) { if ($cur_config eq "") { $out .= $_; } else { $config{$cur_config} .= $_; } } else { flush_config(); $cur_config = ""; $out .= $_; } } close IN or die; flush_config(); $out =~ s/\n\n+/\n\n/g; $out =~ s/\n+$/\n/; open OUT, ">$fname"; print OUT $out; close OUT; } for my $fname(@ARGV) { sort_kconfig $fname } </script> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
41 lines
985 B
Plaintext
41 lines
985 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
menuconfig V4L_TEST_DRIVERS
|
|
bool "V4L test drivers"
|
|
depends on VIDEO_DEV
|
|
|
|
if V4L_TEST_DRIVERS
|
|
|
|
config VIDEO_VIM2M
|
|
tristate "Virtual Memory-to-Memory Driver"
|
|
depends on VIDEO_DEV
|
|
select VIDEOBUF2_VMALLOC
|
|
select V4L2_MEM2MEM_DEV
|
|
select MEDIA_CONTROLLER
|
|
select MEDIA_CONTROLLER_REQUEST_API
|
|
help
|
|
This is a virtual test device for the memory-to-memory driver
|
|
framework.
|
|
|
|
source "drivers/media/test-drivers/vicodec/Kconfig"
|
|
source "drivers/media/test-drivers/vimc/Kconfig"
|
|
source "drivers/media/test-drivers/vivid/Kconfig"
|
|
|
|
endif #V4L_TEST_DRIVERS
|
|
|
|
menuconfig DVB_TEST_DRIVERS
|
|
bool "DVB test drivers"
|
|
depends on DVB_CORE && MEDIA_SUPPORT && I2C
|
|
help
|
|
Enables DVB test drivers.
|
|
|
|
This enables the DVB test drivers. They are meant as an aid for
|
|
DVB device driver writers and developers working on userspace
|
|
media applications.
|
|
|
|
if DVB_TEST_DRIVERS
|
|
|
|
source "drivers/media/test-drivers/vidtv/Kconfig"
|
|
|
|
endif #DVB_TEST_DRIVERS
|