* [PATCH] kbuild: add global tags generation.
@ 2011-01-14 7:13 Jianbin Kang
2011-01-14 9:33 ` Américo Wang
0 siblings, 1 reply; 4+ messages in thread
From: Jianbin Kang @ 2011-01-14 7:13 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kernel, trivial
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
gnu global (http://www.gnu.org/software/global/) is a source code tagging system
It is really cheap to support it in kbuild system.
Jianbin Kang
[-- Attachment #2: gtags.diff --]
[-- Type: text/x-patch, Size: 2053 bytes --]
diff --git a/Makefile b/Makefile
index 74b2555..127a371 100644
--- a/Makefile
+++ b/Makefile
@@ -420,7 +420,7 @@ endif
# of make so .config is not included in this case either (for *config).
no-dot-config-targets := clean mrproper distclean \
- cscope TAGS tags help %docs check% coccicheck \
+ cscope gtags TAGS tags help %docs check% coccicheck \
include/linux/version.h headers_% \
kernelversion %src-pkg
@@ -1134,7 +1134,7 @@ CLEAN_FILES += vmlinux System.map \
MRPROPER_DIRS += include/config usr/include include/generated
MRPROPER_FILES += .config .config.old .version .old_version \
include/linux/version.h \
- Module.symvers tags TAGS cscope*
+ Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS
# clean - Delete most, but leave enough to build external modules
#
@@ -1221,6 +1221,7 @@ help:
@echo ' modules_prepare - Set up for building external modules'
@echo ' tags/TAGS - Generate tags file for editors'
@echo ' cscope - Generate cscope index'
+ @echo ' gtags - Generate global index'
@echo ' kernelrelease - Output the release version string'
@echo ' kernelversion - Output the version stored in Makefile'
@echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \
@@ -1379,7 +1380,7 @@ clean: $(clean-dirs)
quiet_cmd_tags = GEN $@
cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@
-tags TAGS cscope: FORCE
+tags TAGS cscope gtags: FORCE
$(call cmd,tags)
# Scripts to check various things for consistency
diff --git a/scripts/tags.sh b/scripts/tags.sh
index bbbe584..5cb11f5 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -114,6 +114,11 @@ docscope()
cscope -b -f cscope.out
}
+dogtags()
+{
+ all_sources | gtags -f -
+}
+
exuberant()
{
all_sources | xargs $1 -a \
@@ -186,7 +191,9 @@ case "$1" in
"cscope")
docscope
;;
-
+ "gtags")
+ dogtags
+ ;;
"tags")
rm -f tags
xtags ctags
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: add global tags generation.
2011-01-14 7:13 [PATCH] kbuild: add global tags generation Jianbin Kang
@ 2011-01-14 9:33 ` Américo Wang
2011-01-14 9:43 ` Jianbin Kang
0 siblings, 1 reply; 4+ messages in thread
From: Américo Wang @ 2011-01-14 9:33 UTC (permalink / raw)
To: Jianbin Kang; +Cc: Michal Marek, linux-kernel, trivial
On Fri, Jan 14, 2011 at 03:13:01PM +0800, Jianbin Kang wrote:
>gnu global (http://www.gnu.org/software/global/) is a source code tagging system
>It is really cheap to support it in kbuild system.
>
Looks pretty good,
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
But... 1) you missed your Signed-off-by; 2) you should Cc linux-kbuild
rather than trivial.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: add global tags generation.
2011-01-14 9:33 ` Américo Wang
@ 2011-01-14 9:43 ` Jianbin Kang
2011-01-14 9:47 ` Américo Wang
0 siblings, 1 reply; 4+ messages in thread
From: Jianbin Kang @ 2011-01-14 9:43 UTC (permalink / raw)
To: Américo Wang; +Cc: linux-kernel
2011/1/14 Américo Wang <xiyou.wangcong@gmail.com>:
> On Fri, Jan 14, 2011 at 03:13:01PM +0800, Jianbin Kang wrote:
>>gnu global (http://www.gnu.org/software/global/) is a source code tagging system
>>It is really cheap to support it in kbuild system.
>>
>
> Looks pretty good,
>
> Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
>
> But... 1) you missed your Signed-off-by; 2) you should Cc linux-kbuild
> rather than trivial.
er, where should signed-off-by be put? At the bottom of the mail or
the bottom of the patch?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: add global tags generation.
2011-01-14 9:43 ` Jianbin Kang
@ 2011-01-14 9:47 ` Américo Wang
0 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2011-01-14 9:47 UTC (permalink / raw)
To: Jianbin Kang; +Cc: Américo Wang, linux-kernel
On Fri, Jan 14, 2011 at 05:43:51PM +0800, Jianbin Kang wrote:
>2011/1/14 Américo Wang <xiyou.wangcong@gmail.com>:
>> On Fri, Jan 14, 2011 at 03:13:01PM +0800, Jianbin Kang wrote:
>>>gnu global (http://www.gnu.org/software/global/) is a source code tagging system
>>>It is really cheap to support it in kbuild system.
>>>
>>
>> Looks pretty good,
>>
>> Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
>>
>> But... 1) you missed your Signed-off-by; 2) you should Cc linux-kbuild
>> rather than trivial.
>er, where should signed-off-by be put? At the bottom of the mail or
>the bottom of the patch?
Usually, it is at the bottom of the patch description,
see Documentation/SubmittingPatches.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-14 9:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 7:13 [PATCH] kbuild: add global tags generation Jianbin Kang
2011-01-14 9:33 ` Américo Wang
2011-01-14 9:43 ` Jianbin Kang
2011-01-14 9:47 ` Américo Wang
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®