aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2010-03-02 10:57:52 -0500
committerMichal Marek <mmarek@suse.cz>2010-03-03 04:47:09 -0500
commitbc75cc6b5636eed5f6a481cba808e906f71cfd94 (patch)
tree4c218a403c4bdf1ce8a108ea6044ab25ad66f275
parent4431d4ce996de2cd2c45583209ba0dbbc9bf2795 (diff)
tags: Add the ability to make tags for all archs using "all"
make ALLSOURCE_ARCHS=all tags - Document this in kbuild.txt Without this change you have to type each arch separately. Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r--Documentation/kbuild/kbuild.txt4
-rwxr-xr-xscripts/tags.sh11
2 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt
index 84725b72675a..634c625da8ce 100644
--- a/Documentation/kbuild/kbuild.txt
+++ b/Documentation/kbuild/kbuild.txt
@@ -162,3 +162,7 @@ For tags/TAGS/cscope targets, you can specify more than one arch
162to be included in the databases, separated by blank space. E.g.: 162to be included in the databases, separated by blank space. E.g.:
163 163
164 $ make ALLSOURCE_ARCHS="x86 mips arm" tags 164 $ make ALLSOURCE_ARCHS="x86 mips arm" tags
165
166To get all available archs you can also specify all. E.g.:
167
168 $ make ALLSOURCE_ARCHS=all tags
diff --git a/scripts/tags.sh b/scripts/tags.sh
index caa867dba16d..868b4c8fc25f 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -24,9 +24,20 @@ else
24 tree=${srctree}/ 24 tree=${srctree}/
25fi 25fi
26 26
27# Find all available archs
28find_all_archs()
29{
30 ALLSOURCE_ARCHS=""
31 for arch in `ls ${tree}arch`; do
32 ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/}
33 done
34}
35
27# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH 36# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
28if [ "${ALLSOURCE_ARCHS}" = "" ]; then 37if [ "${ALLSOURCE_ARCHS}" = "" ]; then
29 ALLSOURCE_ARCHS=${SRCARCH} 38 ALLSOURCE_ARCHS=${SRCARCH}
39elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then
40 find_all_archs
30fi 41fi
31 42
32# find sources in arch/$ARCH 43# find sources in arch/$ARCH