]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - Makefile
modpost: do not invoke extra modpost for nsdeps
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 29 Oct 2019 12:38:06 +0000 (21:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Nov 2019 11:10:01 +0000 (20:10 +0900)
commitbff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6
treeb8178452dcff6dff6594d7b77344363c1292d20c
parentfaade9610246e9e443068be8cb24c784e9a91f2e
modpost: do not invoke extra modpost for nsdeps

'make nsdeps' invokes the modpost three times at most; before linking
vmlinux, before building modules, and finally for generating .ns_deps
files. Running the modpost again and again is not efficient.

The last two can be unified. When the -d option is given, the modpost
still does the usual job, and in addition, generates .ns_deps files.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Matthias Maennich <maennich@google.com>
Reviewed-by: Matthias Maennich <maennich@google.com>
Makefile
scripts/Makefile.modpost
scripts/mod/modpost.c