Commit 5f94c8bd authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Nick Desaulniers
Browse files

BACKPORT: 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: default avatarMasahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 3204a7fb)
[nd: conflict in scripts/Makefile.modpost due to d7a95644, which is
itself a backport of 850ded46]
Bug: 189327973
Bug: 209655537
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Change-Id: I691d266b68d769ec0fabcc98ed515cfb1cad5ccf
parent 0e5e792a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment