Skip to content

Commit f0b0d88

Browse files
rddunlapmasahir0y
authored andcommitted
kbuild: modules_install: warn when missing System.map file
If there is no System.map file for "make modules_install", scripts/depmod.sh 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 by: $ make mrproper; make defconfig $ make modules; make modules_install and since System.map is produced by "make vmlinux", the steps above omit producing the System.map file. Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 914b087 commit f0b0d88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/depmod.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DEPMOD=$1
1111
KERNELRELEASE=$2
1212

1313
if ! test -r System.map ; then
14+
echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2
1415
exit 0
1516
fi
1617

0 commit comments

Comments
 (0)