kbuild: remove unneeded link_multi_deps
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 4 Oct 2018 04:25:19 +0000 (13:25 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 19 Oct 2018 00:47:46 +0000 (09:47 +0900)
commit69ea912fda74a673d330d23595385e5b73e3a2b9
treeb1e7f945f216baa35fbeebdd6be72a602cd343cb
parent9df3e7a7d7d6d92df7c58fb17f900fdc2d8b5031
kbuild: remove unneeded link_multi_deps

Since commit c8589d1e9e01 ("kbuild: handle multi-objs dependency
appropriately"), $^ really represents all the prerequisite of the
composite object being built.

Hence, $(filter %.o,$^) contains all the objects to link together,
which is much simpler than link_multi_deps calculation.

Please note $(filter-out FORCE,$^) does not work here. When a single
object module is turned into a multi object module, $^ will contain
header files that were previously included for building the single
object, and recorded in the .*.cmd file. To filter out such headers,
$(filter %.o,$^) should be used here.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build