From 06b4ebbc865cf58503ea1dab90b6fa256048ec4a Mon Sep 17 00:00:00 2001 From: John Kacur Date: Tue, 2 Mar 2010 16:57:52 +0100 Subject: [PATCH] --- yaml --- r: 199522 b: refs/heads/master c: bc75cc6b5636eed5f6a481cba808e906f71cfd94 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/kbuild/kbuild.txt | 4 ++++ trunk/scripts/tags.sh | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d02f220e5f2c..1c942c85a612 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4431d4ce996de2cd2c45583209ba0dbbc9bf2795 +refs/heads/master: bc75cc6b5636eed5f6a481cba808e906f71cfd94 diff --git a/trunk/Documentation/kbuild/kbuild.txt b/trunk/Documentation/kbuild/kbuild.txt index 84725b72675a..634c625da8ce 100644 --- a/trunk/Documentation/kbuild/kbuild.txt +++ b/trunk/Documentation/kbuild/kbuild.txt @@ -162,3 +162,7 @@ For tags/TAGS/cscope targets, you can specify more than one arch to be included in the databases, separated by blank space. E.g.: $ make ALLSOURCE_ARCHS="x86 mips arm" tags + +To get all available archs you can also specify all. E.g.: + + $ make ALLSOURCE_ARCHS=all tags diff --git a/trunk/scripts/tags.sh b/trunk/scripts/tags.sh index caa867dba16d..868b4c8fc25f 100755 --- a/trunk/scripts/tags.sh +++ b/trunk/scripts/tags.sh @@ -24,9 +24,20 @@ else tree=${srctree}/ fi +# Find all available archs +find_all_archs() +{ + ALLSOURCE_ARCHS="" + for arch in `ls ${tree}arch`; do + ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} + done +} + # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH if [ "${ALLSOURCE_ARCHS}" = "" ]; then ALLSOURCE_ARCHS=${SRCARCH} +elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then + find_all_archs fi # find sources in arch/$ARCH