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

Wolfram Quester
2004-08-04T10:22:25Z

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

Hi alltogether!

On Fri, Jul 30, 2004 at 02:03:18PM -0700, Tom Rini wrote:
>
> 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?

I had to apply this patch to get 2.6.8-rc2 compiled on debian unstable
(3.3.4-2 and binutils 2.15-1). I think ths patch should make it into
2.6.8.

With best regards,

Wolfi
>
> 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
> http://gate.crashing.org/~trini/
>
> ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]