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

Tom Rini
2004-07-30T21:03:23Z

On Fri, Jul 30, 2004 at 10:48:28PM +0200, Giuliano Pochini wrote:

[snip]
> gcc 3.3.3 + binutils 2.15 fails quite soon here:
>
> AS arch/ppc/kernel/l2cr.o
> arch/ppc/kernel/l2cr.S: Assembler messages:
> arch/ppc/kernel/l2cr.S:110: Error: Unrecognized opcode: `dssall'
> arch/ppc/kernel/l2cr.S:278: Error: Unrecognized opcode: `dssall'
> arch/ppc/kernel/l2cr.S:387: Error: Unrecognized opcode: `dssall'
> make[1]: *** [arch/ppc/kernel/l2cr.o] Error 1

Can you try with the following?

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

===== arch/ppc/Makefile 1.57 vs edited =====
--- 1.57/arch/ppc/Makefile 2004-07-28 21:58:36 -07:00
+++ edited/arch/ppc/Makefile 2004-07-29 12:21:33 -07:00
@@ -22,7 +22,7 @@

LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic
CPPFLAGS += -Iarch/$(ARCH)
-AFLAGS += -Iarch/$(ARCH)
+aflags-y += -Iarch/$(ARCH)
cflags-y += -Iarch/$(ARCH) -msoft-float -pipe \
-ffixed-r2 -Wno-uninitialized -mmultiple
CPP = $(CC) -E $(CFLAGS)
@@ -33,10 +33,16 @@
cflags-y += -mstring
endif

+aflags-$(CONFIG_4xx) += -m405
cflags-$(CONFIG_4xx) += -Wa,-m405
+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

+AFLAGS += $(aflags-y)
CFLAGS += $(cflags-y)

head-y := arch/ppc/kernel/head.o

--
Tom Rini