Let target 'cscope' follow symbolic links
PATCH 1/1 Let target 'cscope' follow symbolic links
Without telling 'find' to follow symbolic links, files under include/asm and arch/$(ARCH)/include/asm/arch are not added to the cscope file list.
--- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
@@ -479,7 +479,7 @@ etags: etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ -name '*.[chS]' -print` cscope: - find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files + find -L $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files cscope -b -q -k SYSTEM_MAP = \
Signature · 1 line
1.7.6
PATCH 1/1 Let target 'cscope' follow symbolic links
Hi Horst,
Quoted 2 lines
Without telling 'find' to follow symbolic links, files under
include/asmand arch/$(ARCH)/include/asm/arch are not added to the cscope file list.
While your point seems valid, I see three occurrences of such a find pattern and you fix only one. May I ask you to fix all of them so users of tags and etags are not left behind?
Thanks!
Detlev
Signature · 6 lines
A zen-buddhist walked into a pizza shop and said, "Make me one with everything." -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
PATCH 1/1 Let target 'cscope' follow symbolic links
Quoted 8 lines
-----Original Message-----
From: Detlev Zundel [mailto:dzu at denx.de]
Sent: Freitag, 15. Juli 2011 09:34
To: KRONSTORFER Horst
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] Let target 'cscope' follow symbolic links
Quoted 8 lines
Hi Horst,
Quoted 2 lines
Without telling 'find' to follow symbolic links, files under
include/asmand arch/$(ARCH)/include/asm/arch are not added to the cscope file list.While your point seems valid, I see three occurrences of such a find pattern and you fix only one. May I ask you to fix all of them so users of tags and etags are not left behind?
you're right ... will do!
br
-h
Quoted 10 lines
Thanks!
Detlev--
A zen-buddhist walked into a pizza shop and
said, "Make me one with everything."
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
PATCH v2 1/1 Let source cross-reference targets follow symbolic links
In reply to Horst KronstorferFrom: Horst Kronstorfer <[email protected]>
Without telling 'find' to follow symbolic links, files under include/asm and arch/$(ARCH)/include/asm/arch are not added to the indexing file list.
Changes for v2:
- Apply this change to all source cross-reference targets
--- Makefile | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
@@ -471,15 +471,17 @@ TAG_SUBDIRS = $(SUBDIRS) TAG_SUBDIRS += $(dir $(__LIBS)) TAG_SUBDIRS += include +FIND := find -L + tags ctags: - ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ + ctags -w -o $(obj)ctags `$(FIND) $(TAG_SUBDIRS) \ -name '*.[chS]' -print` etags: - etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ + etags -a -o $(obj)etags `$(FIND) $(TAG_SUBDIRS) \ -name '*.[chS]' -print` cscope: - find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files + $(FIND) $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files cscope -b -q -k SYSTEM_MAP = \
Signature · 1 line
1.7.6
PATCH v2 1/1 Let source cross-reference targets follow symbolic links
Hi Horst,
Quoted 9 lines
From: Horst Kronstorfer <[email protected]>
Without telling 'find' to follow symbolic links, files under
include/asmand arch/$(ARCH)/include/asm/arch are not added to the indexing file list.Signed-off-by Horst Kronstorfer <[email protected]>Changes for v2:
- Apply this change to all source cross-reference targets
This needs to go below the '---' as it is not part of the git commit message.
Makefile TAG_SUBDIRS = $(SUBDIRS) · line 474
Quoted 13 lines
--- Makefile | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)Makefile +1
-0@@ -471,15 +471,17 @@ TAG_SUBDIRS = $(SUBDIRS) TAG_SUBDIRS += $(dir $(__LIBS)) TAG_SUBDIRS += include +FIND := find -L
I really dislike this approach. I would never expect a variable $(FIND) to already include options. So if you want to go that way then also introduce FINDFLAGS.
Thanks
Detlev
Signature · 6 lines
"One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
PATCH v3 1/1 Let source cross-reference targets follow symbolic links
In reply to hkronsto at frequentis.comFrom: Horst Kronstorfer <[email protected]>
Tell 'find' to follow symbolic links, so that files under include/asm and arch/$(ARCH)/include/asm/arch are added to the indexing file list.
---
Changes for v2:
- Apply this change to all source cross-reference targets
Changes for v3:
- Introduce FINDFLAGS
Makefile | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
Makefile +7 -3
@@ -471,15 +471,19 @@ TAG_SUBDIRS = $(SUBDIRS) TAG_SUBDIRS += $(dir $(__LIBS)) TAG_SUBDIRS += include +FIND := find +FINDFLAGS := -L + tags ctags: - ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ + ctags -w -o $(obj)ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \ -name '*.[chS]' -print` etags: - etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ + etags -a -o $(obj)etags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \ -name '*.[chS]' -print` cscope: - find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files + $(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) -name '*.[chS]' -print > \ + cscope.files cscope -b -q -k SYSTEM_MAP = \
Signature · 1 line
1.7.6
PATCH v3 1/1 Let source cross-reference targets follow symbolic links
Hi,
Quoted 6 lines
From: Horst Kronstorfer <[email protected]>
Tell 'find' to follow symbolic links, so that files under
include/asmand arch/$(ARCH)/include/asm/arch are added to the indexing file list.Signed-off-by Horst Kronstorfer <[email protected]>
I guess I would have placed the definitions more at the beginning of the makefile but probably that's personal taste. So
Thanks!
Detlev
Signature · 7 lines
Indeed, the author firmly believes that the best serious work is also
good fun. We needn't apologize if we enjoy doing research.
-- Donald Knuth
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.deWolfgang Denk
AppliedPATCH v3 1/1 Let source cross-reference targets follow symbolic links
In reply to hkronsto at frequentis.comDear hkronsto at frequentis.com,
Quoted 6 lines · In message <[email protected]> you…
From: Horst Kronstorfer <[email protected]>
Tell 'find' to follow symbolic links, so that files under
include/asmand arch/$(ARCH)/include/asm/arch are added to the indexing file list.Signed-off-by Horst Kronstorfer <[email protected]>
Quoted 8 lines
---
Changes for v2:
- Apply this change to all source cross-reference targets
Changes for v3:
- Introduce FINDFLAGSMakefile | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Swap read error. You lose your mind.