tags: honor COMPILED_SOURCE with apart output directory
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: 923e02ecf3
("scripts/tags.sh: Support compiled source")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
zero-colors
parent
3def03441e
commit
cbf52a3e6a
|
@ -106,6 +106,7 @@ all_compiled_sources()
|
||||||
case "$i" in
|
case "$i" in
|
||||||
*.[cS])
|
*.[cS])
|
||||||
j=${i/\.[cS]/\.o}
|
j=${i/\.[cS]/\.o}
|
||||||
|
j="${j#$tree}"
|
||||||
if [ -e $j ]; then
|
if [ -e $j ]; then
|
||||||
echo $i
|
echo $i
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue