kbuild: add kbuild-file macro
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 18 Nov 2022 19:15:50 +0000 (04:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 22 Nov 2022 14:40:02 +0000 (23:40 +0900)
commita2430b25c31840a6dcbf95c65415d5fee2984dbc
tree279c58348f88232abb0a350fed080547e94163c3
parent5724ac5589ad93d35d95a845222f566175c681b8
kbuild: add kbuild-file macro

While building, installing, cleaning, Kbuild visits sub-directories
and includes 'Kbuild' or 'Makefile' that exists there.

Add 'kbuild-file' macro, and reuse it from scripts/Makefie.*

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Reviewed-by: Alexander Lobakin <alobakin@pm.me>
Tested-by: Alexander Lobakin <alobakin@pm.me>
scripts/Kbuild.include
scripts/Makefile.asm-generic
scripts/Makefile.build
scripts/Makefile.clean
scripts/Makefile.dtbinst
scripts/Makefile.modpost