]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: put modpost options before argument
authorRichard Acayan <mailingradian@gmail.com>
Tue, 11 Oct 2022 01:38:28 +0000 (21:38 -0400)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 14 Oct 2022 13:32:52 +0000 (22:32 +0900)
commita05ee1cb6f7c2c13d930cd408306a322cfef3a4e
treee1d1f268cbd9b440dd69486699d0372d690ee1b5
parent6a98ae87419ec5fb304c479b3ac82fc8fb534ba6
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: 006d0348b257 ("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 <mailingradian@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.modpost