kbuild: save $(strip ...) for calling any-prepreq
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 22 Jun 2019 16:07:04 +0000 (01:07 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 1 Jul 2019 01:03:15 +0000 (10:03 +0900)
commit93f31bbda43603da1e8af06667b45b410c6c897a
tree23a3b78650d2a98f5fbb1d605c2de378f2fa6e98
parent50bcca6ac417bfd18fa84d45eeaa4a30155fe3c8
kbuild: save $(strip ...) for calling any-prepreq

The string returned by $(filter-out ...) does not contain any leading
or trailing spaces.

So, only the space that matters is the one between

  $(filter-out $(PHONY),$?)

and

  $(filter-out $(PHONY) $(wildcard $^),$^)

By removing it from the code, we can save $(strip ...) evaluation.
This refactoring is possible because $(any-prereq) is only passed to
the first argument of $(if ...), so we are only interested in whether
or not it is empty.

This is also the prerequisite for the next commit.

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