path: root/linux/use_dir.pl
diff options
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 15:43:33 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 16:36:26 (GMT)
commitc025baff4ff53beb9d35c0a0ae62c73d038723c6 (patch)
treee41681d08f1c522cf73711c00e4eab92a5441762 /linux/use_dir.pl
parent11ab52e7a03fe6829d083914820ad945d1291d68 (diff)
Add a printk messages for media builds
When someone reports an error, we need to know what are the applied patches. Also, users need to be warned that using the backported tree is not the same as running a stable kernel. This patch adds a logic that patches the subsystem core in order to indicate that an experimental tree is being used. It also prints the latest applied patches, in order to help developers when a bug report is filled. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/use_dir.pl')
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/use_dir.pl b/linux/use_dir.pl
index 2172270..015c9ac 100755
--- a/linux/use_dir.pl
+++ b/linux/use_dir.pl
@@ -166,7 +166,13 @@ sub get_patched_files()
my %files;
- open IN, $patchfile;
+ open IN, $patchfile or return %files;
+ # Those files are always patched to add warnings about the usage of experimental version
+ $files{"drivers/media/dvb/dvb-core/dvbdev.c"} = 1;
+ $files{"drivers/media/video/v4l2-dev.c"} = 1;
+ $files{"drivers/media/rc/rc-main.c"} = 1;
while (<IN>) {
next if (/^\s*#/);
@@ -193,6 +199,7 @@ sub sync_patched_files()
return if (!%patches);
foreach my $file (keys %patches) {
+printf "sync patched file $file\n";
$fhash{$file} = hash_calc("$dir/$file");
copy("$dir/$file", $file);

Privacy Policy