Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127191
b: refs/heads/master
c: 4f62824
h: refs/heads/master
i:
  127189: 276692e
  127187: a913d2c
  127183: 29022d5
v: v3
  • Loading branch information
Jike Song authored and Sam Ravnborg committed Jan 7, 2009
1 parent 3ee257e commit 9ada1b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40c8c85a47552bd792b0ad49ddcc45ec18369134
refs/heads/master: 4f628248a578585472e19e4cba2c604643af8c6c
7 changes: 7 additions & 0 deletions trunk/Documentation/kbuild/kbuild.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ KBUILD_EXTRA_SYMBOLS
--------------------------------------------------
For modules use symbols from another modules.
See more details in modules.txt.

ALLSOURCE_ARCHS
--------------------------------------------------
For tags/TAGS/cscope targets, you can specify more than one archs
to be included in the databases, separated by blankspace. e.g.

$ make ALLSOURCE_ARCHS="x86 mips arm" tags
18 changes: 13 additions & 5 deletions trunk/scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ else
tree=${srctree}/
fi

# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
if [ "${ALLSOURCE_ARCHS}" = "" ]; then
ALLSOURCE_ARCHS=${SRCARCH}
fi

# find sources in arch/$ARCH
find_arch_sources()
{
Expand Down Expand Up @@ -54,26 +59,29 @@ find_other_sources()
find_sources()
{
find_arch_sources $1 "$2"
find_include_sources "$2"
find_other_sources "$2"
}

all_sources()
{
find_sources $SRCARCH '*.[chS]'
for arch in $ALLSOURCE_ARCHS
do
find_sources $arch '*.[chS]'
done
if [ ! -z "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
fi
find_include_sources '*.[chS]'
find_other_sources '*.[chS]'
}

all_kconfigs()
{
find_sources $SRCARCH 'Kconfig*'
find_sources $ALLSOURCE_ARCHS 'Kconfig*'
}

all_defconfigs()
{
find_sources $SRCARCH "defconfig"
find_sources $ALLSOURCE_ARCHS "defconfig"
}

docscope()
Expand Down

0 comments on commit 9ada1b4

Please sign in to comment.