]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: replace sed with $(subst ) or $(patsubst )
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 14 Mar 2021 06:15:50 +0000 (15:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Apr 2021 20:14:01 +0000 (05:14 +0900)
commit59df526adaa707bf188e8fcb36a0d0fc2ee30479
tree6a1feaeeddf691f200eaaf8058dfc94087156b1d
parent726755d6d1f34c619df2de9519de1508d2d2ebc2
kbuild: replace sed with $(subst ) or $(patsubst )

For simple text replacement, it is better to use a built-in function
instead of sed if possible. You can save one process forking.

I do not mean to replace all sed invocations because GNU Make itself
does not support regular expression (unless you use guile).

I just replaced simple ones.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/devicetree/bindings/Makefile
Makefile