LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] tags: link from CONFIG_x to 'config x' as well
@ 2008-10-31 17:29 Alexey Dobriyan
  2008-11-02 20:23 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2008-10-31 17:29 UTC (permalink / raw)
  To: sam, akpm; +Cc: linux-kernel

Inability to jump from CONFIG_ symbol in source to symbol definition in 
Kconfig is very, very annoying. You'll jump to useless entry in autoconf.h,
if it exists at all.

No more.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 Makefile |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/Makefile
+++ b/Makefile
@@ -1482,6 +1482,10 @@ define xtags
 		--langdef=kconfig \
 		--language-force=kconfig \
 		--regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/\2/'; \
+	    $(all-kconfigs) | xargs $1 -a \
+		--langdef=kconfig \
+		--language-force=kconfig \
+		--regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/CONFIG_\2/'; \
 	    $(all-defconfigs) | xargs -r $1 -a \
 		--langdef=dotconfig \
 		--language-force=dotconfig \
@@ -1490,6 +1494,8 @@ define xtags
 	    $(all-sources) | xargs $1 -a; \
 	    $(all-kconfigs) | xargs $1 -a \
 		--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'; \
+	    $(all-kconfigs) | xargs $1 -a \
+		--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/CONFIG_\3/'; \
 	    $(all-defconfigs) | xargs -r $1 -a \
 		--regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/'; \
 	else \

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tags: link from CONFIG_x to 'config x' as well
  2008-10-31 17:29 [PATCH] tags: link from CONFIG_x to 'config x' as well Alexey Dobriyan
@ 2008-11-02 20:23 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-11-02 20:23 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: akpm, linux-kernel

On Fri, Oct 31, 2008 at 08:29:38PM +0300, Alexey Dobriyan wrote:
> Inability to jump from CONFIG_ symbol in source to symbol definition in 
> Kconfig is very, very annoying. You'll jump to useless entry in autoconf.h,
> if it exists at all.
> 
> No more.

Hi Alexey.

Based on the number of patches hitting tags/cscope support at the moment
it is becoming obvious that this have to live outside the top-level
Makefile.
So any improvements in this area has to start with ripping
it all out of the top-level Makefile and add it to a shell
script in scripts/tags.sh (or similar).

If no-one betas me I will do so when I start to look into
non-bugfixes for kbuild.

So I will not take your patch right now. Not because it is
wrong, but simple to avoid changes to the top-level Makefile
when this must happen in a shell script.

	Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-02 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-31 17:29 [PATCH] tags: link from CONFIG_x to 'config x' as well Alexey Dobriyan
2008-11-02 20:23 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).