public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: fix typo SRCARCH in find_sources
@ 2007-10-16  7:28 Yinghai Lu
  2007-10-17 23:43 ` [PATCH] kbuild: filter out .tmp_* " Yinghai Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Yinghai Lu @ 2007-10-16  7:28 UTC (permalink / raw)
  To: Sam Ravnborg, Andrew Morton; +Cc: LKML

[PATCH] kbuild: fix typo SRCARCH in find_sources

otherwise get the two copy file list in SRCARCH

for cscope:
C symbol: start_kernel

  File           Function            Line
0 proto.h        <global>              11 extern void start_kernel(void );
1 start_kernel.h <global>              10 extern asmlinkage void __init start_kernel(void );
2 head32.c       i386_start_kernel     37 start_kernel();
3 head32.c       i386_start_kernel     37 start_kernel();
4 head64.c       x86_64_start_kernel   85 start_kernel();
5 head64.c       x86_64_start_kernel   85 start_kernel();
6 head_32.S      options              199 cmpb $0,%cl #the first CPU calls start_kernel
7 head_32.S      options              199 cmpb $0,%cl #the first CPU calls start_kernel
8 enlighten.c    xen_start_kernel    1145 start_kernel();
9 enlighten.c    xen_start_kernel    1145 start_kernel();
a lguest.c       lguest_init         1095 start_kernel();
b main.c         start_kernel         513 asmlinkage void __init start_kernel(void )

after the patch:
C symbol: start_kernel

  File           Function            Line
0 proto.h        <global>              11 extern void start_kernel(void );
1 start_kernel.h <global>              10 extern asmlinkage void __init start_kernel(void );
2 head32.c       i386_start_kernel     37 start_kernel();
3 head64.c       x86_64_start_kernel   85 start_kernel();
4 head_32.S      options              199 cmpb $0,%cl #the first CPU calls start_kernel
5 enlighten.c    xen_start_kernel    1145 start_kernel();
6 lguest.c       lguest_init         1095 start_kernel();
7 main.c         start_kernel         513 asmlinkage void __init start_kernel(void )

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/Makefile b/Makefile
index 1274084..7ee4c04 100644
--- a/Makefile
+++ b/Makefile
@@ -1309,8 +1309,8 @@ ALLSOURCE_ARCHS := $(ARCH) $(SRCARCH)
 endif
 
 define find-sources
-        ( for ARCH in $(ALLSOURCE_ARCHS) ; do \
-	       find $(__srctree)arch/$${SRCARCH} $(RCS_FIND_IGNORE) \
+        ( for arch in $(ALLSOURCE_ARCHS) ; do \
+	       find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
 	            -name $1 -print; \
 	  done ; \
 	  find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
@@ -1318,8 +1318,8 @@ define find-sources
 	  find $(__srctree)include $(RCS_FIND_IGNORE) \
 	       \( -name config -o -name 'asm-*' \) -prune \
 	       -o -name $1 -print; \
-	  for ARCH in $(ALLINCLUDE_ARCHS) ; do \
-	       find $(__srctree)include/asm-$${SRCARCH} $(RCS_FIND_IGNORE) \
+	  for arch in $(ALLINCLUDE_ARCHS) ; do \
+	       find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \
 	            -name $1 -print; \
 	  done ; \
 	  find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \

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

* [PATCH] kbuild: filter out .tmp_* in find_sources
  2007-10-16  7:28 [PATCH] kbuild: fix typo SRCARCH in find_sources Yinghai Lu
@ 2007-10-17 23:43 ` Yinghai Lu
  2007-10-18 11:46   ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Yinghai Lu @ 2007-10-17 23:43 UTC (permalink / raw)
  To: Sam Ravnborg, Andrew Morton, Thomas Gleixner; +Cc: LKML

[PATCH] kbuild: filter out .tmp_* in find_sources

remove .tmp_kallsyms*.S in cscope.files

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/Makefile b/Makefile
index 529b904..a793511 100644
--- a/Makefile
+++ b/Makefile
@@ -1341,7 +1341,7 @@ define find-sources
 	  find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
 	       -name $1 -print; \
 	  find $(__srctree) $(RCS_FIND_IGNORE) \
-	       \( -name include -o -name arch \) -prune -o \
+	       \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \
 	       -name $1 -print; \
 	  )
 endef

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

* Re: [PATCH] kbuild: filter out .tmp_* in find_sources
  2007-10-17 23:43 ` [PATCH] kbuild: filter out .tmp_* " Yinghai Lu
@ 2007-10-18 11:46   ` Sam Ravnborg
  0 siblings, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2007-10-18 11:46 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: Andrew Morton, Thomas Gleixner, LKML

On Wed, Oct 17, 2007 at 04:43:39PM -0700, Yinghai Lu wrote:
> [PATCH] kbuild: filter out .tmp_* in find_sources
> 
> remove .tmp_kallsyms*.S in cscope.files
> 
> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

Thanks - applied,

	Sam

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

end of thread, other threads:[~2007-10-18 11:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16  7:28 [PATCH] kbuild: fix typo SRCARCH in find_sources Yinghai Lu
2007-10-17 23:43 ` [PATCH] kbuild: filter out .tmp_* " Yinghai Lu
2007-10-18 11:46   ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox