From: Robert Jarzmik Date: Mon, 5 Jun 2017 11:59:15 +0000 (+0200) Subject: tags: honor COMPILED_SOURCE with apart output directory X-Git-Tag: v3.18.105~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cfbe9ba85101aa413d337fe5fd2946bf210b8c0;p=thirdparty%2Fkernel%2Fstable.git tags: honor COMPILED_SOURCE with apart output directory [ Upstream commit cbf52a3e6a8a92beec6e0c70abf4111cd8f8faf7 ] 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 Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/tags.sh b/scripts/tags.sh index cdb491d845035..7056322b53f09 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -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