]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] kbuild: When checking depmod version, redirect stderr
authorTom Rini <trini@kernel.crashing.org>
Fri, 15 Jul 2005 14:56:36 +0000 (07:56 -0700)
committerSam Ravnborg <sam@mars.(none)>
Sun, 17 Jul 2005 21:00:22 +0000 (21:00 +0000)
When running depmod to check for the correct version number, extra
output we don't need to see, such as "depmod: QM_MODULES: Function not
implemented" may show up.  Redirect stderr to /dev/null as the version
information that we do care about comes to stdout.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 38384f898d61656209da16410979a975641ef693..5185c917077b777c92d454322e0249f5ab7f2b71 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -886,7 +886,7 @@ modules_install: _modinst_ _modinst_post
 
 .PHONY: _modinst_
 _modinst_:
-       @if [ -z "`$(DEPMOD) -V | grep module-init-tools`" ]; then \
+       @if [ -z "`$(DEPMOD) -V 2>/dev/null | grep module-init-tools`" ]; then \
                echo "Warning: you may need to install module-init-tools"; \
                echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\
                sleep 1; \