summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-05-31 14:04:16 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-31 14:04:16 -0300
commit916fd2c97dfa82ccaa90177b8419a72469bf034b (patch)
tree652bafb8c92e09609089611cda7bf81428adee01 /v4l
parentff70ec79edf139144e6fc40315e3280021b89882 (diff)
downloadmediapointer-dvb-s2-916fd2c97dfa82ccaa90177b8419a72469bf034b.tar.gz
mediapointer-dvb-s2-916fd2c97dfa82ccaa90177b8419a72469bf034b.tar.bz2
Simplifies make install logs
From: Mauro Carvalho Chehab <mchehab@infradead.org> Installation logs were very prolific. This patch makes the installation message cleaner, while preserving all information. The generated log is now much more clear, especially if compiling just a few device drivers. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/make_makefile.pl19
1 files changed, 13 insertions, 6 deletions
diff --git a/v4l/scripts/make_makefile.pl b/v4l/scripts/make_makefile.pl
index 8711cc5a8..d684fdc45 100755
--- a/v4l/scripts/make_makefile.pl
+++ b/v4l/scripts/make_makefile.pl
@@ -129,16 +129,23 @@ open_makefile('../linux/drivers/media/Makefile');
# Creating Install rule
print OUT "media-install::\n";
-print OUT "\t\@echo \"Stripping debug info from files:\"\n";
+print OUT "\t\@echo \"Stripping debug info from files\"\n";
print OUT "\t\@strip --strip-debug \$(inst-m)\n\n";
+print OUT "\t\@echo \"Installing kernel modules under \$(DESTDIR)\$(KDIR26)/:\"\n";
while (my ($dir, $files) = each %instdir) {
- print OUT "\t\@echo -e \"\\nInstalling \$(KDIR26)/$dir files:\"\n";
- print OUT "\t\@install -d \$(DESTDIR)\$(KDIR26)/$dir\n";
- print OUT "\t\@for i in ", join(' ', keys %$files), ";do ";
- print OUT "if [ -e \"\$\$i\" ]; then echo -n \"\$\$i \";";
- print OUT " install -m 644 -c \$\$i \$(DESTDIR)\$(KDIR26)/$dir; fi; done; echo;\n\n";
+ print OUT "\t\@n=0;for i in ", join(' ', keys %$files), ";do ";
+ print OUT "if [ -e \"\$\$i\" ]; then ";
+ print OUT "if [ \$\$n = 0 ]; then ";
+ print OUT "echo -n \"\t$dir/: \"; ";
+ print OUT "install -d \$(DESTDIR)\$(KDIR26)/$dir; fi; ";
+ print OUT "n=\$\$\(\(n+1\)\); ";
+ print OUT "if [ \$\$n == 4 ]; then echo; echo -n \"\t\t\"; n=1; fi; ";
+ print OUT "echo -n \"\$\$i \"; ";
+ print OUT "install -m 644 -c \$\$i \$(DESTDIR)\$(KDIR26)/$dir; fi; done; ";
+ print OUT "if [ \$\$n != 0 ]; then echo; fi\n\n";
}
+print OUT "\t@echo\n";
print OUT "\t/sbin/depmod -a \$(KERNELRELEASE) \$(if \$(DESTDIR),-b \$(DESTDIR))\n\n";
# Creating Remove rule