[PATCH 29/37] modpost: move -d option in scripts/Makefile.modpost

Masahiro Yamada
2020-06-01T05:58:20Z

Collect options for modules into a single place.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

scripts/Makefile.modpost | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index bc9a03e8208d..b0c3634ff462 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)

ifneq ($(findstring i,$(filter-out --%,$(MAKEFLAGS))),)
--
2.25.1