scripts/tags.sh: Include tools directory in tags generation
Add tools directory in generating tags and quiet the "No such file or
directory" warnings.
It reverts the changes introduced in commit 162343a876
("scripts/tags.sh: exclude tools directory from tags generation") while
maintainig the original intent of the patch to get rid of the warnings.
This allows the root level cscope files to include tools source code
besides kernel and a single place to browse the code for both.
Acked-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Vipin Sharma <vipinsh@google.com>
Link: https://lore.kernel.org/r/20220618005457.2379324-1-vipinsh@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
85df46465b
commit
d60be533a0
|
@ -25,13 +25,6 @@ else
|
||||||
tree=${srctree}/
|
tree=${srctree}/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ignore userspace tools
|
|
||||||
if [ -n "$COMPILED_SOURCE" ]; then
|
|
||||||
ignore="$ignore ( -path ./tools ) -prune -o"
|
|
||||||
else
|
|
||||||
ignore="$ignore ( -path ${tree}tools ) -prune -o"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
|
# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
|
||||||
if [ "${ALLSOURCE_ARCHS}" = "" ]; then
|
if [ "${ALLSOURCE_ARCHS}" = "" ]; then
|
||||||
ALLSOURCE_ARCHS=${SRCARCH}
|
ALLSOURCE_ARCHS=${SRCARCH}
|
||||||
|
@ -100,7 +93,7 @@ all_compiled_sources()
|
||||||
find $ignore -name "*.cmd" -exec \
|
find $ignore -name "*.cmd" -exec \
|
||||||
grep -Poh '(?(?=^source_.* \K).*|(?=^ \K\S).*(?= \\))' {} \+ |
|
grep -Poh '(?(?=^source_.* \K).*|(?=^ \K\S).*(?= \\))' {} \+ |
|
||||||
awk '!a[$0]++'
|
awk '!a[$0]++'
|
||||||
} | xargs realpath -es $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) |
|
} | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) |
|
||||||
sort -u
|
sort -u
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue