Skip to content

Commit 11df33c

Browse files
flamingradianmasahir0y
authored andcommitted
modpost: put modpost options before argument
The musl implementation of getopt stops looking for options after the first non-option argument. Put the options before the non-option argument so environments using musl can still build the kernel and modules. Fixes: f73edc8 ("kbuild: unify two modpost invocations") Link: https://git.musl-libc.org/cgit/musl/tree/src/misc/getopt.c?h=dc9285ad1dc19349c407072cc48ba70dab86de45#n44 Signed-off-by: Richard Acayan <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent fc8c2d8 commit 11df33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.modpost

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ quiet_cmd_modpost = MODPOST $@
119119
echo >&2 "WARNING: $(missing-input) is missing."; \
120120
echo >&2 " Modules may not have dependencies or modversions."; \
121121
echo >&2 " You may get many unresolved symbol warnings.";) \
122-
sed 's/ko$$/o/' $(or $(modorder-if-needed), /dev/null) | $(MODPOST) $(modpost-args) $(vmlinux.o-if-present) -T -
122+
sed 's/ko$$/o/' $(or $(modorder-if-needed), /dev/null) | $(MODPOST) $(modpost-args) -T - $(vmlinux.o-if-present)
123123

124124
targets += $(output-symdump)
125125
$(output-symdump): $(modorder-if-needed) $(vmlinux.o-if-present) $(moudle.symvers-if-present) $(MODPOST) FORCE

0 commit comments

Comments
 (0)