]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
tags: Add the ability to make tags for all archs using "all"
authorJohn Kacur <jkacur@redhat.com>
Tue, 2 Mar 2010 15:57:52 +0000 (16:57 +0100)
committerMichal Marek <mmarek@suse.cz>
Wed, 3 Mar 2010 09:47:09 +0000 (10:47 +0100)
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>
Documentation/kbuild/kbuild.txt
scripts/tags.sh

index 84725b72675a69c16c60d77573097e19695e756d..634c625da8ce3435e23118e442c47d2d5b903898 100644 (file)
@@ -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
index caa867dba16de32aad4a2494e2f3d04bdb3d6f86..868b4c8fc25f563f179abf4bbd75d8caeb633d07 100755 (executable)
@@ -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