Skip to content

Commit

Permalink
modpost: move -T option close to the modpost command
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y committed Jun 3, 2020
1 parent 91e6ee5 commit 89d6117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Makefile.modpost
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ __modpost:

else

MODPOST += -s -T - \
MODPOST += -s \
$(if $(KBUILD_NSDEPS),-d $(MODULES_NSDEPS))

ifeq ($(KBUILD_EXTMOD),)
Expand All @@ -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)
Expand Down

0 comments on commit 89d6117

Please sign in to comment.