diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2017-06-05 13:59:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 19:50:18 +0200 |
commit | 04e22d2e31777698ffb463740496db13c3b5aa22 (patch) | |
tree | d379bd842d456262c1b4d81d76c165315269a80e /scripts | |
parent | 2ddfd31afc5ffbc9907ca2cbfa3cefc6fd7e0a5b (diff) | |
download | linux-stable-04e22d2e31777698ffb463740496db13c3b5aa22.tar.gz linux-stable-04e22d2e31777698ffb463740496db13c3b5aa22.tar.bz2 linux-stable-04e22d2e31777698ffb463740496db13c3b5aa22.zip |
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 <robert.jarzmik@free.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 262889046703..45e246595d10 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 |