Re: [kbuild-devel] [git pull] x86 fixes

2008-09-09 Thread Ingo Molnar

* Ingo Molnar <[EMAIL PROTECTED]> wrote:

> 
> * David Sanders <[EMAIL PROTECTED]> wrote:
> 
> > On Monday 08 September 2008 17:43, H. Peter Anvin wrote:
> > > Does this patch fix that for you?
> > >
> > 
> > Yes, thanks.
> 
> it fixes build errors in my test setup too.

Sam, i've applied Peter's fix (see the commit below) - do you have any 
objections to us carrying this in x86/urgent? It's needed for the gcc 
fix/workaround.

Ingo

--->
>From 095fbc7296ccfe41688e8ef136587b23f0e8c123 Mon Sep 17 00:00:00 2001
From: H. Peter Anvin <[EMAIL PROTECTED]>
Date: Mon, 8 Sep 2008 14:43:11 -0700
Subject: [PATCH] kbuild: fix cc-option and cc-option-yn

David Sanders wrote:

> I'm getting this error:
> as: unrecognized option `-mtune=generic32'
> I have binutils 2.17.

Use -c instead of -S in cc-option and cc-option-yn, so we can probe
options related to the assembler.

Signed-off-by: H. Peter Anvin <[EMAIL PROTECTED]>
Cc: Sam Ravnborg <[EMAIL PROTECTED]>
Cc: kbuild devel 
Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 scripts/Kbuild.include |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index d64e6ba..982dcae 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -105,12 +105,12 @@ as-instr = $(call try-run,\
 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
 
 cc-option = $(call try-run,\
-   $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",$(1),$(2))
+   $(CC) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2))
 
 # cc-option-yn
 # Usage: flag := $(call cc-option-yn,-march=winchip-c6)
 cc-option-yn = $(call try-run,\
-   $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n)
+   $(CC) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n)
 
 # cc-option-align
 # Prefix align with either -falign or -malign

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


Re: [kbuild-devel] [git pull] x86 fixes

2008-09-08 Thread Ingo Molnar

* David Sanders <[EMAIL PROTECTED]> wrote:

> On Monday 08 September 2008 17:43, H. Peter Anvin wrote:
> > Does this patch fix that for you?
> >
> 
> Yes, thanks.

it fixes build errors in my test setup too.

Ingo

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


Re: [kbuild-devel] [RFC] kbuild - introduce vdir to make life easier for x86_64

2007-09-10 Thread Ingo Molnar

* Thomas Gleixner <[EMAIL PROTECTED]> wrote:

> On Mon, 2007-09-10 at 21:11 +0200, Sam Ravnborg wrote:
> > One of the complaints raised about the current x86_64 Makfiles are 
> > the ugliness needed to reuse code from i386. Andi asked me if we 
> > could do something in kbuild to make this less ugly and below are 
> > the hack I could come up with.
> 
> while in general this is definitely a nice change, it does not really 
> solve the real problem of code scattered across two architectures. The 
> Makefile polishing is the least thing we care about.
> 
> Thanks,

i'd like to add it here that Makefile polishing is important - it's just 
that in the context of arch/*x86* the Makefile impact of the current 
cross-arch code sharing practice is one of the smaller problems and the 
Makefiles get cleaned up via the arch/x86 merge anyway.

Ingo

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


[kbuild-devel] UML & make -j problem

2004-01-19 Thread Ingo Molnar

one problem the UML build has in 2.6 is that 'make -j' does not work
after a 'make clean'. The problem is the building of two binaries in
arch/um/util/, which needs the kbuild infrastructure but which tools are
also used for the 'prepare' stage.

what would be the cleanest solution?

Ingo


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel