kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 30 Jul 2019 15:59:00 +0000 (00:59 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 31 Jul 2019 15:09:49 +0000 (00:09 +0900)
commitcb4819934a7f9b87876f11ed05b8624c0114551b
treea7e76452017edce2a4829fa6c116b64d82aaa140
parent944cfe9be1fbbec73bab2f7e77fe2e8f9c72970f
kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

KBUILD_EXTRA_SYMBOLS makes sense only when building external modules.
Moreover, the modpost sets 'external_module' if the -e option is given.

I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...)
while I was here.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.modpost