From 916fd2c97dfa82ccaa90177b8419a72469bf034b Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 31 May 2007 14:04:16 -0300 Subject: Simplifies make install logs From: Mauro Carvalho Chehab 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 --- v4l/scripts/make_makefile.pl | 19 +++++++++++++------ 1 file 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 -- cgit v1.2.3