X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=scripts%2Fdepmod.sh;h=999d585eaa7358dd813b8b0d5a204fc1ea48ca3c;hb=2645b9d1a49c2c2cf23895657bdf9a56e07a4da8;hp=1a6f85e0e6e15731367fe4696129d0d5d91f1a0a;hpb=37a16046800c29a8ca1ebe26086e363494062a17;p=uclinux-h8%2Flinux.git diff --git a/scripts/depmod.sh b/scripts/depmod.sh index 1a6f85e0e6e1..999d585eaa73 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -10,10 +10,16 @@ fi DEPMOD=$1 KERNELRELEASE=$2 -if ! test -r System.map -a -x "$DEPMOD"; then +if ! test -r System.map ; then exit 0 fi +if [ -z $(command -v $DEPMOD) ]; then + echo "'make modules_install' requires $DEPMOD. Please install it." >&2 + echo "This is probably in the kmod package." >&2 + exit 1 +fi + # older versions of depmod require the version string to start with three # numbers, so we cheat with a symlink here depmod_hack_needed=true