Skip to contentSkip to conversation

kbuild - tags

PATCH Applied John Kacur 2 participants 3 messages Mar 2, 2010 – Mar 7, 2010

Subsystems (2)
lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 kbuild - 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.

---
 Documentation/kbuild/kbuild.txt |    4 ++++
 scripts/tags.sh                 |   11 +++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
Documentation/kbuild/kbuild.txt +4 -0
index 6f8c1ca..a6791e3 100644
@@ -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
scripts/tags.sh +11 -0
index a6a8e71..766eb8a 100755
@@ -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
Signature · 1 line
1.6.6.1
Applied
#1 lore raw
Quoted 7 lines · John Kacur

- 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.

Thanks, applied.

Michal

author
#2 lore raw
Quoted 11 lines · Michal Marek
Quoted 7 lines · John Kacur

      - 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.

Thanks, applied.

Great! Are you going to send a pull request to Linus soon for 2.6.34?

Thanks
John