]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: prefix $(srctree)/ to some included Makefiles
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 Feb 2021 06:10:26 +0000 (15:10 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Mar 2021 10:20:48 +0000 (19:20 +0900)
commit5db712b472529156433aa0107a15fccde9936006
tree372f0332ba14c0b15f7be566b0a48780e0abcb87
parent4f0be5a267ce1c80d673727864ba230cec2dd40b
kbuild: prefix $(srctree)/ to some included Makefiles

VPATH is used in Kbuild to make pattern rules search for prerequisites
in both $(objtree) and $(srctree). Some of *.c, *.S files are not real
sources, but generated by tools such as flex, bison, perl.

In contrast, I doubt the benefit of --include-dir=$(abs_srctree) because
it is always clear which Makefiles are real sources, and which are not.

So, my hope is to add $(srctree)/ prefix to all check-in Makefiles,
then remove --include-dir=$(abs_srctree) flag in the future.

I am touching only some Kbuild core parts for now. Treewide fixes will
be needed to achieve this goal.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
scripts/Makefile.asm-generic
scripts/Makefile.build
scripts/Makefile.clean
scripts/Makefile.dtbinst
scripts/Makefile.headersinst
scripts/Makefile.modinst
scripts/Makefile.modpost
scripts/Makefile.modsign