diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-10-29 21:38:06 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-11-11 20:10:01 +0900 |
commit | bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6 (patch) | |
tree | b8178452dcff6dff6594d7b77344363c1292d20c /Makefile | |
parent | faade9610246e9e443068be8cb24c784e9a91f2e (diff) | |
download | linux-bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6.tar.gz linux-bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6.tar.bz2 linux-bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1684,10 +1684,9 @@ tags TAGS cscope gtags: FORCE # --------------------------------------------------------------------------- PHONY += nsdeps - +nsdeps: export KBUILD_NSDEPS=1 nsdeps: modules - $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost nsdeps - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/$@ + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/nsdeps # Scripts to check various things for consistency # --------------------------------------------------------------------------- |