History

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 162343a876f1 ("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.

Vipin Sharma committed 4 years ago

Commit d60be531 parent 85df4641 file · +1 −8Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/tags.sh+1−8
@@ -25,13 +25,6 @@ else · 24 unmodified lines
25 tree=${srctree}/25 tree=${srctree}/
26fi26fi
27 27
28# ignore userspace tools
29if [ -n "$COMPILED_SOURCE" ]; then
30 ignore="$ignore ( -path ./tools ) -prune -o"
31else
32 ignore="$ignore ( -path ${tree}tools ) -prune -o"
33fi
34
35# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH28# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
36if [ "${ALLSOURCE_ARCHS}" = "" ]; then29if [ "${ALLSOURCE_ARCHS}" = "" ]; then
37 ALLSOURCE_ARCHS=${SRCARCH}30 ALLSOURCE_ARCHS=${SRCARCH}
@@ -100,7 +93,7 @@ all_compiled_sources() · 62 unmodified lines
100 find $ignore -name "*.cmd" -exec \93 find $ignore -name "*.cmd" -exec \
101 grep -Poh '(?(?=^source_.* \K).*|(?=^ \K\S).*(?= \\))' {} \+ |94 grep -Poh '(?(?=^source_.* \K).*|(?=^ \K\S).*(?= \\))' {} \+ |
102 awk '!a[$0]++'95 awk '!a[$0]++'
103 } | xargs realpath -es $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) |96 } | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) |
104 sort -u97 sort -u
105}98}
106 99

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t