diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2017-06-05 13:59:15 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-09-15 18:29:57 +0100 |
commit | dc122c5c136fe10591313e7ef9f8d2c8e7309333 (patch) | |
tree | 4fb55ef3bb48577d54f518f914617163c12eeef5 /scripts | |
parent | 8b075c0f665571b130bdc03181c341fbe143636e (diff) | |
download | linux-stable-dc122c5c136fe10591313e7ef9f8d2c8e7309333.tar.gz linux-stable-dc122c5c136fe10591313e7ef9f8d2c8e7309333.tar.bz2 linux-stable-dc122c5c136fe10591313e7ef9f8d2c8e7309333.zip |
tags: honor COMPILED_SOURCE with apart output directory
commit cbf52a3e6a8a92beec6e0c70abf4111cd8f8faf7 upstream.
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: Ben Hutchings <ben@decadent.org.uk>
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 e6b011fe1d0d..140e5fad867d 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 |