public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Len Brown <lenb@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>, Chris Wright <chrisw@sous-sol.org>,
	Rusty Russell <rusty@rustcorp.com.au>, Andi Kleen <ak@muc.de>,
	Glauber de Oliveira Costa <glommer@gmail.com>,
	Jeremy Fitzhardinge <jeremy@goop.org>
Subject: Re: [PATCH take3 16/20] acpi files switched
Date: Thu, 15 Mar 2007 07:51:02 -0400	[thread overview]
Message-ID: <1173959462.7922.5.camel@localhost.localdomain> (raw)
In-Reply-To: <200703150236.43214.lenb@kernel.org>

On Thu, 2007-03-15 at 02:36 -0400, Len Brown wrote:
> On Thursday 15 March 2007 01:13, Steven Rostedt wrote:
> > Moved the shared files that were in arch/i386/kernel/acpi to the common
> > area.
> 
> When I do a "make cscope" on an i386 or an x86_64 box,
> will it find these files in the common area?

At the moment, "no".

With this quick hack, it will work, and I'm sure someone can come up
with a better idea.

Currently, the "make cscope" and "make TAGS" only get the files that are
physically located in the arch. As I mentioned to Ingo, it took me an
hour when I first looked for early_printk. Since it wasn't in the TAGS
and my own search scripts were also arch specific.  I was working in
i386, and early_printk is not.

But here's a hack that will let both x86_64 and i386 see the same code
in the common area for a "make cscope" or "make TAGS".

-- Steve

diff --git a/Makefile b/Makefile
index 6393738..974c05b 100644
--- a/Makefile
+++ b/Makefile
@@ -1265,8 +1265,16 @@ endif
 
 ifeq ($(ALLSOURCE_ARCHS),)
 ifeq ($(ARCH),um)
+ALLSOURCE_ARCHS := $(ARCH)
 ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH)
+else ifeq ($(ARCH),x86_64)
+ALLSOURCE_ARCHS := $(ARCH) x86
+ALLINCLUDE_ARCHS := $(ARCH) x86
+else ifeq ($(ARCH),i386)
+ALLSOURCE_ARCHS := $(ARCH) x86
+ALLINCLUDE_ARCHS := $(ARCH) x86
 else
+ALLSOURCE_ARCHS := $(ARCH)
 ALLINCLUDE_ARCHS := $(ARCH)
 endif
 else
@@ -1274,8 +1282,6 @@ else
 ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
 endif
 
-ALLSOURCE_ARCHS := $(ARCH)
-
 define find-sources
         ( find $(__srctree) $(RCS_FIND_IGNORE) \
 	       \( -name include -o -name arch \) -prune -o \



  parent reply	other threads:[~2007-03-15 11:52 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15  5:13 [PATCH take3 00/20] Make common x86 arch area for i386 and x86_64 - Take 3 Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 01/20] early_printk.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 02/20] tsc_sync.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 03/20] bootflag.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 04/20] quirks.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 05/20] i8237.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 06/20] topology.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 07/20] alternative.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 08/20] msr.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 09/20] cpuid.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 10/20] microcode.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 11/20] pcspeaker.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 12/20] mtrr directory switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 13/20] therm_throt.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 14/20] intel_cacheinfo.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 15/20] cpufreq files switched Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 16/20] acpi " Steven Rostedt
2007-03-15  6:36   ` Len Brown
2007-03-15  7:33     ` Chris Wright
2007-03-15 11:51     ` Steven Rostedt [this message]
2007-03-15  5:13 ` [PATCH take3 17/20] k8.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 18/20] stacktrace.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 19/20] hugetlbpage.c switch Steven Rostedt
2007-03-15  5:13 ` [PATCH take3 20/20] oprofile files switched Steven Rostedt
2007-03-15  6:37 ` [PATCH take3 00/20] Make common x86 arch area for i386 and x86_64 - Take 3 Rusty Russell
2007-03-16 10:13   ` Ingo Molnar
2007-03-16 10:29 ` Ingo Molnar
2007-03-19  1:06   ` Chuck Ebbert
2007-03-19 12:17     ` William Lee Irwin III
2007-03-19 13:10       ` Chuck Ebbert
2007-03-19 14:23         ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1173959462.7922.5.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=ak@muc.de \
    --cc=akpm@linux-foundation.org \
    --cc=chrisw@sous-sol.org \
    --cc=glommer@gmail.com \
    --cc=jeremy@goop.org \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox