diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-02 08:10:37 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-02 08:10:37 -0300 |
commit | c3c47fd1bb07ca6c9e79e921396ae540ebf636b9 (patch) | |
tree | cb387ead3dd8cfa24ddc652dbfe98f1249c65421 | |
parent | 3c26caca00b26cc247a0aeb187be7ad804c73cba (diff) | |
download | mediapointer-dvb-s2-c3c47fd1bb07ca6c9e79e921396ae540ebf636b9.tar.gz mediapointer-dvb-s2-c3c47fd1bb07ca6c9e79e921396ae540ebf636b9.tar.bz2 |
Added cross-dependecy check at the end of compilation cycle
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | v4l/Makefile | 2 | ||||
-rwxr-xr-x | v4l/scripts/rmmod.pl | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index 63d3fe48a..3e9336a95 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -33,7 +33,7 @@ endif default:: config-compat.h Makefile.media links .version echo srcdir $(SRCDIR) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) $(MYCFLAGS) modules - + ./scripts/rmmod.pl check ################################################# # Object specific rules diff --git a/v4l/scripts/rmmod.pl b/v4l/scripts/rmmod.pl index 19a0a8c61..ade231707 100755 --- a/v4l/scripts/rmmod.pl +++ b/v4l/scripts/rmmod.pl @@ -173,22 +173,22 @@ if ($mode eq "load") { prepare_cmd; parse_loaded; rmmod; + } elsif ($mode eq "reload") { + prepare_cmd; + parse_loaded; + my @modlist2=@modlist; + rmmod; + @modlist=@modlist2; + insmod(0); + } elsif ($mode eq "debug") { + prepare_cmd; + parse_loaded; + insmod(1); + } elsif ($mode eq "check") { + prepare_cmd; + parse_loaded; } else { - if ($mode eq "reload") { - prepare_cmd; - parse_loaded; - my @modlist2=@modlist; - rmmod; - @modlist=@modlist2; - insmod(0); - } else { - if ($mode eq "debug") { - prepare_cmd; - parse_loaded; - insmod(1); - } else { - printf "Usage: $0 [load|unload|reload]\n"; - } - } + printf "Usage: $0 [load|unload|reload|debug|check]\n"; } } + |