summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.modpost
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-01 07:57:23 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-06 16:38:13 +0200
commit859c926aea29353bced3a456c2f73753040b437e (patch)
tree4508c2a253d0a2cbb6d2849897e3d94b0e2131df /scripts/Makefile.modpost
parentmodpost: remove -s option (diff)
downloadlinux-859c926aea29353bced3a456c2f73753040b437e.tar.xz
linux-859c926aea29353bced3a456c2f73753040b437e.zip
modpost: move -d option in scripts/Makefile.modpost
Collect options for modules into a single place. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r--scripts/Makefile.modpost4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 4938a6f368c0..3651cbf6ad49 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -62,9 +62,6 @@ __modpost: vmlinux.symvers
else
-MODPOST += \
- $(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS))
-
ifeq ($(KBUILD_EXTMOD),)
input-symdump := vmlinux.symvers
@@ -91,6 +88,7 @@ endif
# modpost options for modules (both in-kernel and external)
MODPOST += \
$(addprefix -i ,$(wildcard $(input-symdump))) \
+ $(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS)) \
$(if $(CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS)$(KBUILD_NSDEPS),-N)
# 'make -i -k' ignores compile errors, and builds as many modules as possible.