summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/check_deps.pl8
-rwxr-xr-xv4l/scripts/em28xx.pl26
-rwxr-xr-xv4l/scripts/hghead.pl6
-rwxr-xr-xv4l/scripts/release.sh2
-rwxr-xr-xv4l/scripts/strip-trailing-whitespaces.sh6
5 files changed, 34 insertions, 14 deletions
diff --git a/v4l/scripts/check_deps.pl b/v4l/scripts/check_deps.pl
index 4071a9976..e4d8f7a8f 100755
--- a/v4l/scripts/check_deps.pl
+++ b/v4l/scripts/check_deps.pl
@@ -194,16 +194,16 @@ Dependency check tool for Kernel Symbols.
Copyright(c) 2008 by Mauro Carvalho Chehab <mchehab\@infradead.org>
This code is licenced under the terms of GPLv2.
-This script seeks all .c files under linux/ for their exported symbols. For
-each exported symbol, it will check what Kconfig symbol is associated. Then, it
+This script seeks all .c files under linux/ for their exported symbols. For
+each exported symbol, it will check what Kconfig symbol is associated. Then, it
will cross-check that symbol usage and output a Kconfig depencency table.
WARNING: The result of this tool should be used just as a hint, since, due to
-performance issues, and to simplify the tool, the checks will use a simple grep
+performance issues, and to simplify the tool, the checks will use a simple grep
for the symbol string at the .c files, instead of a real symbol cross-check.
Also, the same symbol may appear twice with different dependencies. This is due
-to the way it checks for symbols. The final dependency is the union (AND) of
+to the way it checks for symbols. The final dependency is the union (AND) of
all showed ones for that symbol.
Further patches improving this tool are welcome.
diff --git a/v4l/scripts/em28xx.pl b/v4l/scripts/em28xx.pl
index 98944ba79..ddd428ad5 100755
--- a/v4l/scripts/em28xx.pl
+++ b/v4l/scripts/em28xx.pl
@@ -6,20 +6,25 @@ my $nr = 0;
my ($id,$subvendor,$subdevice);
my %data;
+my $debug = 0;
+
while (<>) {
# defines in header file
- if (/#define\s+(EM28[\d]._BOARD_\w+)\s+(\d+)/) {
+ if (/#define\s+(EM2[\d][\d][\d]_BOARD_[\w\d_]+)\s+(\d+)/) {
+ printf("$1 = $2\n") if ($debug);
$data{$1}->{nr} = $2;
next;
}
# em2820_boards
- if (/\[(EM2820_BOARD_\w+)\]/) {
+ if (/\[(EM2820_BOARD_[\w\d_]+)\]/) {
$id = $1;
+ printf("ID = $id\n") if $debug;
$data{$id}->{id} = $id;
$data{$id}->{type} = "(em2820/em2840)";
# $data{$id}->{nr} = $nr++;
- } elsif (/\[(EM)(28[\d].)(_BOARD_\w+)\]/) {
+ } elsif (/\[(EM)(2[\d]..)(_BOARD_[\w\d_]+)\]/) {
$id = "$1$2$3";
+ printf("ID = $id\n") if $debug;
$data{$id}->{id} = $id;
$data{$id}->{type} = "(em$2)";
# $data{$id}->{nr} = $nr++;
@@ -32,13 +37,16 @@ while (<>) {
$subdevice=$2;
}
- if (/.*driver_info.*(EM28[\d]._BOARD_\w+)/ ) {
- push @{$data{$1}->{subid}}, "$subvendor:$subdevice";
+ if (/.*driver_info.*(EM2[\d].._BOARD_[\w\d_]+)/ ) {
+ push @{$data{$1}->{subid}}, "$subvendor:$subdevice";
}
- if (!defined($data{$id}) || !defined($data{$id}->{name})) {
- $data{$id}->{name} = $1 if (/\.name\s*=\s*\"([^\"]+)\"/);
- }
+ if (!defined($data{$id}) || !defined($data{$id}->{name})) {
+ $data{$id}->{name} = $1 if (/\.name\s*=\s*\"([^\"]+)\"/);
+ if (defined $data{$id}->{name} && $debug) {
+ printf("name[$id] = %s\n", $data{$id}->{name});
+ }
+ }
# em2820_USB_tbl
@@ -46,7 +54,7 @@ while (<>) {
}
foreach my $item (sort { $data{$a}->{nr} <=> $data{$b}->{nr} } keys %data) {
- printf("%3d -> %-40s %-15s", $data{$item}->{nr}, $data{$item}->{name},$data{$item}->{type});
+ printf("%3d -> %-40s %-15s", $data{$item}->{nr}, $data{$item}->{name}, $data{$item}->{type});
printf(" [%s]",join(",",@{$data{$item}->{subid}}))
if defined($data{$item}->{subid});
print "\n";
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 2450ad136..0f086294d 100755
--- a/v4l/scripts/hghead.pl
+++ b/v4l/scripts/hghead.pl
@@ -131,6 +131,12 @@ while ($line = <IN>) {
next;
}
+ # Keep review lines together with the signatures
+ if ($line =~ m/^\[.*\@.*\:.*\]\n/) {
+ $signed="$signed$line";
+ next;
+ }
+
if ($tag =~ m/changeset:\s*(.*)\n/) {
$num=$1;
}
diff --git a/v4l/scripts/release.sh b/v4l/scripts/release.sh
index 557172875..4e9c810bc 100755
--- a/v4l/scripts/release.sh
+++ b/v4l/scripts/release.sh
@@ -9,7 +9,7 @@ ver_cx="0.0.4"
# common files
files_v4l="v4l*.[ch] video-buf.[ch] videodev*.h"
files_tuner="tuner.[ch] tda9887.[ch]"
-files_i2c="id.h audiochip.h i2c-compat.h"
+files_i2c="id.h audiochip.h"
files_common="$files_v4l $files_tuner $files_i2c doc"
# other files
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh
index 9bd963025..cb341ce76 100755
--- a/v4l/scripts/strip-trailing-whitespaces.sh
+++ b/v4l/scripts/strip-trailing-whitespaces.sh
@@ -20,6 +20,12 @@ else
fi
for file in `eval $files`; do
+ case "$file" in
+ *.patch)
+ continue
+ ;;
+ esac
+
perl -ne '
s/[ \t]+$//;
s<^ {8}> <\t>;