Skip to content

Commit

Permalink
tags: honor COMPILED_SOURCE with apart output directory
Browse files Browse the repository at this point in the history
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: 923e02e ("scripts/tags.sh: Support compiled source")
Signed-off-by: Robert Jarzmik <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
rjarzmik authored and masahir0y committed Jun 5, 2017
1 parent 3def034 commit cbf52a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbf52a3

Please sign in to comment.