]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc50420d285a014ea071d330c3799985feabea92
treeb1e7f945f216baa35fbeebdd6be72a602cd343cb
parente2170cb57876527d6b05aa80d35d0f3a3b0b81d1
kbuild: remove unneeded link_multi_deps

Since commit 2325ef1e87c0 ("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