summaryrefslogtreecommitdiff
path: root/scripts/depmod.sh
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-09-06 16:37:24 -0700
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-09-09 09:14:07 +0900
commitf0b0d88a825149ef3b06656886bc211c71dcb852 (patch)
tree33d72237d0d1933ec190493aaee20036dfa9b630 /scripts/depmod.sh
parent914b087ff9e0e9a399a4927fa30793064afc0178 (diff)
downloadlwn-f0b0d88a825149ef3b06656886bc211c71dcb852.tar.gz
lwn-f0b0d88a825149ef3b06656886bc211c71dcb852.zip
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>
Diffstat (limited to 'scripts/depmod.sh')
-rwxr-xr-xscripts/depmod.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/depmod.sh b/scripts/depmod.sh
index e5f0aad75b96..e083bcae343f 100755
--- a/scripts/depmod.sh
+++ b/scripts/depmod.sh
@@ -11,6 +11,7 @@ DEPMOD=$1
KERNELRELEASE=$2
if ! test -r System.map ; then
+ echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2
exit 0
fi