tags: honor COMPILED_SOURCE with apart output directory
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 5 Jun 2017 11:59:15 +0000 (13:59 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 5 Jun 2017 23:42:34 +0000 (08:42 +0900)
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: 923e02ecf3f8 ("scripts/tags.sh: Support compiled source")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/tags.sh

index d661f2f3ef614c41e22f2346ee9b41b238266715..d23dcbf17457c2c16cf56c73a1ffb3d07e03a257 100755 (executable)
@@ -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