OSDN Git Service

crypto: api - Check spawn->alg under lock in crypto_drop_spawn
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / scripts / depmod.sh
index 122599b..baedaef 100755 (executable)
@@ -10,7 +10,13 @@ DEPMOD=$1
 KERNELRELEASE=$2
 SYMBOL_PREFIX=$3
 
-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 "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2
+       echo "This is probably in the kmod package." >&2
        exit 0
 fi