]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: modules_install: warn when missing System.map file
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 6 Sep 2018 23:37:24 +0000 (16:37 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 9 Sep 2018 00:14:07 +0000 (09:14 +0900)
commitb414b81767eab65e548d36ccf68c41b8c5f20a2b
tree33d72237d0d1933ec190493aaee20036dfa9b630
parent161f1dddeecdf34e8ae292fb784278250dcc1b66
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>
scripts/depmod.sh