Commit 83394886 authored by Robert Jarzmik's avatar Robert Jarzmik Committed by Greg Kroah-Hartman

tags: honor COMPILED_SOURCE with apart output directory


[ Upstream commit cbf52a3e ]

When the kernel is compiled with an "O=" argument, the object files are
not in the source tree, but in the build tree.

This patch fixes O= build by looking for object files in the build tree.

Fixes: 923e02ec ("scripts/tags.sh: Support compiled source")
Signed-off-by: 's avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: 's avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d85c2a3
......@@ -106,6 +106,7 @@ all_compiled_sources()
case "$i" in
*.[cS])
j=${i/\.[cS]/\.o}
j="${j#$tree}"
if [ -e $j ]; then
echo $i
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment