* Fix compiler/assembler flags for Ebony platform boot files
@ 2007-05-25 3:19 David Gibson
2007-05-25 14:04 ` Josh Boyer
2007-05-25 14:05 ` Segher Boessenkool
0 siblings, 2 replies; 5+ messages in thread
From: David Gibson @ 2007-05-25 3:19 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
The recent addition of assembler flags for 44x.c and ebony.c in the
bootwrapper to make them compile on certain toolchains was not correct
and could break other platforms. This patch switches to using a
compiler flag instead, which implies the appropriate assembler flag,
and also stops the compiler itself generating instructions which are
invalid for the platform in question.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Index: working-2.6/arch/powerpc/boot/Makefile
===================================================================
--- working-2.6.orig/arch/powerpc/boot/Makefile 2007-05-25 12:57:26.000000000 +1000
+++ working-2.6/arch/powerpc/boot/Makefile 2007-05-25 12:57:48.000000000 +1000
@@ -33,8 +33,8 @@ endif
BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
-$(obj)/44x.o: BOOTCFLAGS += -Wa,-mbooke
-$(obj)/ebony.o: BOOTCFLAGS += -Wa,-mbooke
+$(obj)/44x.o: BOOTCFLAGS += -mcpu=440
+$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
zlib := inffast.c inflate.c inftrees.c
zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fix compiler/assembler flags for Ebony platform boot files
2007-05-25 3:19 Fix compiler/assembler flags for Ebony platform boot files David Gibson
@ 2007-05-25 14:04 ` Josh Boyer
2007-05-25 14:28 ` Segher Boessenkool
2007-05-25 15:01 ` Dave Jiang
2007-05-25 14:05 ` Segher Boessenkool
1 sibling, 2 replies; 5+ messages in thread
From: Josh Boyer @ 2007-05-25 14:04 UTC (permalink / raw)
To: David Gibson; +Cc: linuxppc-dev, Paul Mackerras
On Fri, 2007-05-25 at 13:19 +1000, David Gibson wrote:
> The recent addition of assembler flags for 44x.c and ebony.c in the
> bootwrapper to make them compile on certain toolchains was not correct
> and could break other platforms. This patch switches to using a
> compiler flag instead, which implies the appropriate assembler flag,
> and also stops the compiler itself generating instructions which are
> invalid for the platform in question.
This looks good to me, but I don't have one of the failing toolchains.
Dave, can you test this patch out?
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fix compiler/assembler flags for Ebony platform boot files
2007-05-25 3:19 Fix compiler/assembler flags for Ebony platform boot files David Gibson
2007-05-25 14:04 ` Josh Boyer
@ 2007-05-25 14:05 ` Segher Boessenkool
1 sibling, 0 replies; 5+ messages in thread
From: Segher Boessenkool @ 2007-05-25 14:05 UTC (permalink / raw)
To: David Gibson; +Cc: linuxppc-dev, Paul Mackerras
> The recent addition of assembler flags for 44x.c and ebony.c in the
> bootwrapper to make them compile on certain toolchains was not correct
> and could break other platforms. This patch switches to using a
> compiler flag instead, which implies the appropriate assembler flag,
> and also stops the compiler itself generating instructions which are
> invalid for the platform in question.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fix compiler/assembler flags for Ebony platform boot files
2007-05-25 14:04 ` Josh Boyer
@ 2007-05-25 14:28 ` Segher Boessenkool
2007-05-25 15:01 ` Dave Jiang
1 sibling, 0 replies; 5+ messages in thread
From: Segher Boessenkool @ 2007-05-25 14:28 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev, Paul Mackerras, David Gibson
> This looks good to me, but I don't have one of the failing toolchains.
> Dave, can you test this patch out?
You can test by using make CC="gcc -mcpu=e500" ...
Segher
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fix compiler/assembler flags for Ebony platform boot files
2007-05-25 14:04 ` Josh Boyer
2007-05-25 14:28 ` Segher Boessenkool
@ 2007-05-25 15:01 ` Dave Jiang
1 sibling, 0 replies; 5+ messages in thread
From: Dave Jiang @ 2007-05-25 15:01 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev, Paul Mackerras, David Gibson
Josh Boyer wrote:
> On Fri, 2007-05-25 at 13:19 +1000, David Gibson wrote:
>> The recent addition of assembler flags for 44x.c and ebony.c in the
>> bootwrapper to make them compile on certain toolchains was not correct
>> and could break other platforms. This patch switches to using a
>> compiler flag instead, which implies the appropriate assembler flag,
>> and also stops the compiler itself generating instructions which are
>> invalid for the platform in question.
>
> This looks good to me, but I don't have one of the failing toolchains.
> Dave, can you test this patch out?
>
> josh
>
Built ok for me after the patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-25 15:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 3:19 Fix compiler/assembler flags for Ebony platform boot files David Gibson
2007-05-25 14:04 ` Josh Boyer
2007-05-25 14:28 ` Segher Boessenkool
2007-05-25 15:01 ` Dave Jiang
2007-05-25 14:05 ` Segher Boessenkool
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).