]> git.ipfire.org Git - people/ms/linux.git/commit
kbuild: read *.mod to get objects passed to $(LD) or $(AR)
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 6 Apr 2022 15:30:23 +0000 (00:30 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:16:59 +0000 (03:16 +0900)
commitfeb7d79fea1d43ddf51a09359b52e73bba0340fd
treefcb4777f9502fe5a7f71cecb7ff078a27ad9121a
parentfc93a4cdce1db7568fcdff608924324f5754efe5
kbuild: read *.mod to get objects passed to $(LD) or $(AR)

ld and ar support @file, which command-line options are read from.

Now that *.mod lists the member objects in the correct order, without
duplication, it is ready to be passed to ld and ar.

By using the @file syntax, people will not be worried about the pitfall
described in the NOTE.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/Makefile.build