* [PATCH] kbuild - tags
@ 2010-03-02 15:57 John Kacur
2010-03-03 9:49 ` Michal Marek
0 siblings, 1 reply; 3+ messages in thread
From: John Kacur @ 2010-03-02 15:57 UTC (permalink / raw)
To: lkml; +Cc: Michal Marek, linux-kbuild, Andrew Morton, 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.
Signed-off-by: John Kacur <jkacur@redhat.com>
---
Documentation/kbuild/kbuild.txt | 4 ++++
scripts/tags.sh | 11 +++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt
index 6f8c1ca..a6791e3 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
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/scripts/tags.sh b/scripts/tags.sh
index a6a8e71..766eb8a 100755
--- a/scripts/tags.sh
+++ b/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
--
1.6.6.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild - tags
2010-03-02 15:57 [PATCH] kbuild - tags John Kacur
@ 2010-03-03 9:49 ` Michal Marek
2010-03-07 13:57 ` John Kacur
0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2010-03-03 9:49 UTC (permalink / raw)
To: John Kacur; +Cc: lkml, linux-kbuild, Andrew Morton
On Tue, Mar 02, 2010 at 04:57:52PM +0100, John Kacur wrote:
> - 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>
Thanks, applied.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild - tags
2010-03-03 9:49 ` Michal Marek
@ 2010-03-07 13:57 ` John Kacur
0 siblings, 0 replies; 3+ messages in thread
From: John Kacur @ 2010-03-07 13:57 UTC (permalink / raw)
To: Michal Marek; +Cc: lkml, linux-kbuild, Andrew Morton
On Wed, Mar 3, 2010 at 10:49 AM, Michal Marek <mmarek@suse.cz> wrote:
> On Tue, Mar 02, 2010 at 04:57:52PM +0100, John Kacur wrote:
>> - 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>
>
> Thanks, applied.
>
Great! Are you going to send a pull request to Linus soon for 2.6.34?
Thanks
John
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-07 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-02 15:57 [PATCH] kbuild - tags John Kacur
2010-03-03 9:49 ` Michal Marek
2010-03-07 13:57 ` John Kacur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®