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

Olaf Hering
2004-08-05T18:05:02Z

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.

g5 has altivec, some include files use dsall in asm().
head.S will not compile without -maltivevec

diff -purNX /tmp/kernel_exclude.txt linux-2.6.8-rc3.orig/arch/ppc/Makefile linux-2.6.8-rc3/arch/ppc/Makefile
--- linux-2.6.8-rc3.orig/arch/ppc/Makefile 2004-08-05 17:35:10.636631000 +0000
+++ linux-2.6.8-rc3/arch/ppc/Makefile 2004-08-05 17:51:09.847355812 +0000
@@ -39,8 +39,8 @@ aflags-$(CONFIG_6xx) += -maltivec
cflags-$(CONFIG_6xx) += -Wa,-maltivec
aflags-$(CONFIG_E500) += -me500
cflags-$(CONFIG_E500) += -Wa,-me500
-aflags-$(CONFIG_PPC64BRIDGE) += -mppc64bridge
cflags-$(CONFIG_PPC64BRIDGE) += -Wa,-mppc64bridge
+cflags-$(CONFIG_POWER4) += -Wa,-maltivec

AFLAGS += $(aflags-y)
CFLAGS += $(cflags-y)
diff -purNX /tmp/kernel_exclude.txt linux-2.6.8-rc3.orig/arch/ppc/kernel/Makefile linux-2.6.8-rc3/arch/ppc/kernel/Makefile
--- linux-2.6.8-rc3.orig/arch/ppc/kernel/Makefile 2004-08-05 17:35:10.665626000 +0000
+++ linux-2.6.8-rc3/arch/ppc/kernel/Makefile 2004-08-05 17:50:19.532770245 +0000
@@ -5,6 +5,9 @@
ifdef CONFIG_PPC64BRIDGE
EXTRA_AFLAGS := -Wa,-mppc64bridge
endif
+ifdef CONFIG_POWER4
+EXTRA_AFLAGS := -Wa,-maltivec
+endif
ifdef CONFIG_4xx
EXTRA_AFLAGS := -Wa,-m405
endif

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

sUse lINUX ag, nÜRNBERG