summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modpost
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-01 08:57:02 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-03 07:22:17 +0300
commit89d6117680bd8ac6a86f58576de0bd6905421707 (patch)
tree323f80336aec95af2ee0553d262bb55a71c2d7c4 /scripts/Makefile.modpost
parent91e6ee581270b8ae970f028b898314d73f16870b (diff)
downloadlinux-89d6117680bd8ac6a86f58576de0bd6905421707.tar.xz
modpost: move -T option close to the modpost command
The '-T -' option reads the file list from stdin. It is clearer to put it close to the piped command. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r--scripts/Makefile.modpost4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index cadc74c6b5a4..ac143c085182 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -66,7 +66,7 @@ __modpost:
else
-MODPOST += -s -T - \
+MODPOST += -s \
$(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS))
ifeq ($(KBUILD_EXTMOD),)
@@ -93,7 +93,7 @@ modules := $(sort $(shell cat $(MODORDER)))
# Read out modules.order instead of expanding $(modules) to pass in modpost.
# Otherwise, allmodconfig would fail with "Argument list too long".
quiet_cmd_modpost = MODPOST $(words $(modules)) modules
- cmd_modpost = sed 's/ko$$/o/' $(MODORDER) | $(MODPOST)
+ cmd_modpost = sed 's/ko$$/o/' $(MODORDER) | $(MODPOST) -T -
__modpost:
$(call cmd,modpost)