kbuild: fix false-positive need-builtin calculation
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 6 Aug 2019 10:03:21 +0000 (19:03 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 9 Aug 2019 16:45:31 +0000 (01:45 +0900)
commitd9f78edfd81b9e484423534360350ef7253cc888
tree6e30db618bb1e5aa190c3aa1b514e8fb6b8cf056
parent47801c97deb71b9e279c15a02a44cf00aa11e7d9
kbuild: fix false-positive need-builtin calculation

The current implementation of need-builtin is false-positive,
for example, in the following Makefile:

  obj-m := foo/
  obj-y := foo/bar/

..., where foo/built-in.a is not required.

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