Commit f0b0d88a authored by Randy Dunlap's avatar Randy Dunlap Committed by Masahiro Yamada

kbuild: modules_install: warn when missing file

If there is no file for "make modules_install",
scripts/ will silently exit with success, having done
nothing.  Since this is an unexpected situation, change it to
report a Warning for the missing file.  The behavior is not
changed except for the Warning message.

The (previous) silent success and new Warning can be reproduced
$ make mrproper; make defconfig
$ make modules; make modules_install

and since is produced by "make vmlinux", the steps
above omit producing the file.
Reported-by: 's avatarMasahiro Yamada <>
Signed-off-by: 's avatarRandy Dunlap <>
Signed-off-by: 's avatarMasahiro Yamada <>
parent 914b087f
......@@ -11,6 +11,7 @@ DEPMOD=$1
if ! test -r ; then
echo "Warning: modules_install: missing '' file. Skipping depmod." >&2
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment