projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tags: Use $SRCARCH
[deliverable/linux.git]
/
scripts
/
tags.sh
diff --git
a/scripts/tags.sh
b/scripts/tags.sh
index 1a0c44d7c4a75308ca6addf915a6951cf30a603d..9f459536f289a8aaa2ae8c3457a91897312afd26 100755
(executable)
--- a/
scripts/tags.sh
+++ b/
scripts/tags.sh
@@
-5,7
+5,7
@@
# mode may be any of: tags, TAGS, cscope
#
# Uses the following environment variables:
# mode may be any of: tags, TAGS, cscope
#
# Uses the following environment variables:
-# ARCH, SUBARCH, srctree, src, obj
+# ARCH, SUBARCH,
SRCARCH,
srctree, src, obj
if [ "$KBUILD_VERBOSE" = "1" ]; then
set -x
if [ "$KBUILD_VERBOSE" = "1" ]; then
set -x
@@
-32,13
+32,20
@@
fi
# find sources in arch/$ARCH
find_arch_sources()
{
# find sources in arch/$ARCH
find_arch_sources()
{
- find ${tree}arch/$1 $ignore -name "$2" -print;
+ for i in $archincludedir; do
+ prune="$prune -wholename $i -prune -o"
+ done
+ find ${tree}arch/$1 $ignore $prune -name "$2" -print;
}
# find sources in arch/$1/include
find_arch_include_sources()
{
}
# find sources in arch/$1/include
find_arch_include_sources()
{
- find ${tree}arch/$1/include $ignore -name "$2" -print;
+ include=$(find ${tree}arch/$1/ -name include -type d);
+ if [ -n "$include" ]; then
+ archincludedir="$archincludedir $include"
+ find $include $ignore -name "$2" -print;
+ fi
}
# find sources in include/
}
# find sources in include/
@@
-63,14
+70,15
@@
find_sources()
all_sources()
{
all_sources()
{
- for arch in $ALLSOURCE_ARCHS
- do
- find_sources $arch '*.[chS]'
- done
+ find_arch_include_sources ${SRCARCH} '*.[chS]'
if [ ! -z "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
fi
find_include_sources '*.[chS]'
if [ ! -z "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
fi
find_include_sources '*.[chS]'
+ for arch in $ALLSOURCE_ARCHS
+ do
+ find_sources $arch '*.[chS]'
+ done
find_other_sources '*.[chS]'
}
find_other_sources '*.[chS]'
}
This page took
0.024238 seconds
and
5
git commands to generate.