Commit 89d61176 authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 91e6ee58
...@@ -66,7 +66,7 @@ __modpost: ...@@ -66,7 +66,7 @@ __modpost:
else else
MODPOST += -s -T - \ MODPOST += -s \
$(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS)) $(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS))
ifeq ($(KBUILD_EXTMOD),) ifeq ($(KBUILD_EXTMOD),)
...@@ -93,7 +93,7 @@ modules := $(sort $(shell cat $(MODORDER))) ...@@ -93,7 +93,7 @@ modules := $(sort $(shell cat $(MODORDER)))
# Read out modules.order instead of expanding $(modules) to pass in modpost. # Read out modules.order instead of expanding $(modules) to pass in modpost.
# Otherwise, allmodconfig would fail with "Argument list too long". # Otherwise, allmodconfig would fail with "Argument list too long".
quiet_cmd_modpost = MODPOST $(words $(modules)) modules 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: __modpost:
$(call cmd,modpost) $(call cmd,modpost)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment