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

Unified · Split

scripts/tags.sh+1−8
@@ -25,13 +25,6 @@ else · 24 unmodified lines
2525 tree=${srctree}/
2626 fi
2727
28−# ignore userspace tools
29−if [ -n "$COMPILED_SOURCE" ]; then
30− ignore="$ignore ( -path ./tools ) -prune -o"
31−else
32− ignore="$ignore ( -path ${tree}tools ) -prune -o"
33−fi
34−
3528 # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
3629 if [ "${ALLSOURCE_ARCHS}" = "" ]; then
3730 ALLSOURCE_ARCHS=${SRCARCH}
@@ -100,7 +93,7 @@ all_compiled_sources() · 62 unmodified lines
10093 find $ignore -name "*.cmd" -exec \
10194 grep -Poh '(?(?=^source_.* \K).*|(?=^ \K\S).*(?= \\))' {} \+ |
10295 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=.) |
10497 sort -u
10598 }
10699

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