Re: [PATCH][PPC32] Makefile cleanups and gcc-3.4+binutils-2.14 c

From: Olaf Hering
Date: Fri Aug 06 2004 - 10:43:07 EST


On Thu, Aug 05, Tom Rini wrote:

> On Thu, Aug 05, 2004 at 08:00:25PM +0200, Olaf Hering wrote:
> > On Thu, Aug 05, Tom Rini wrote:
> >
> > > On Thu, Aug 05, 2004 at 04:12:57PM +0200, Olaf Hering wrote:
> > > > On Fri, Jul 30, Tom Rini wrote:
> > > >
> > > > >
> > > > > +aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge
> > > >
> > > > this should be -Wa,-mppc64bridge for some reasons.
> > >
> > > That, er, doesn't make sense. The assembler needs -Wa,?
> >
> > This makes g5 32bit happy. aflags- is used with 'gcc $options', not for as
> > I'm not sure if the other aflags- should stay.
>
> I mistook AFLAGS for being always invoked with gas, which is not the
> case. Lets do the following:
>
> Signed-off-by: Tom Rini <trini@xxxxxxxxxxxxxxxxxxx>

and this one to enable altivec, because ppc64bridge disables altivec
again.
g5 32bit has CONFIG_POWER4=y and CONFIG_PPC64BRIDGE=y


diff -purNX /tmp/kernel_exclude.txt linux-2.6.8-rc3.trini/arch/ppc/Makefile linux-2.6.8-rc3.trini.fixed/arch/ppc/Makefile
--- linux-2.6.8-rc3.trini/arch/ppc/Makefile 2004-08-06 15:21:00.668653640 +0000
+++ linux-2.6.8-rc3.trini.fixed/arch/ppc/Makefile 2004-08-06 15:25:17.039320563 +0000
@@ -35,9 +35,9 @@ endif

cpu-as-$(CONFIG_4xx) += -Wa,-m405
cpu-as-$(CONFIG_6xx) += -Wa,-maltivec
-cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec
cpu-as-$(CONFIG_E500) += -Wa,-me500
cpu-as-$(CONFIG_PPC64BRIDGE) += -Wa,-mppc64bridge
+cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec

AFLAGS += $(cpu-as-y)
CFLAGS += $(cpu-as-y)

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/