modpost: move -d option in scripts/Makefile.modpost

Collect options for modules into a single place.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 467b82d7
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部