* [PATCH] Fix ppc64 cross-compilation
@ 2004-09-28 18:39 Roland Dreier
2004-09-28 23:14 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Roland Dreier @ 2004-09-28 18:39 UTC (permalink / raw)
To: akpm, benh; +Cc: linux-kernel
After the "ppc64 monster cleanup," I get
powerpc-750-linux-gnu-strip: vmlinux: File format not recognized
from my ppc32 strip command when cross-compiling a ppc64 kernel, since
vmlinux is a 64-bit ELF file. This patch fixes my build (and the
resulting kernel boots fine).
Thanks,
Roland
Signed-off-by: Roland Dreier <roland@topspin.com>
Index: linux-bk/arch/ppc64/boot/Makefile
===================================================================
--- linux-bk.orig/arch/ppc64/boot/Makefile 2004-09-28 11:22:48.000000000 -0700
+++ linux-bk/arch/ppc64/boot/Makefile 2004-09-28 11:23:07.000000000 -0700
@@ -31,7 +31,7 @@
BOOTLD := $(CROSS32_COMPILE)ld
BOOTLFLAGS := -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds
BOOTOBJCOPY := $(CROSS32_COMPILE)objcopy
-BOOTSTRIP := $(CROSS32_COMPILE)strip
+BOOTSTRIP := $(CROSS_COMPILE)strip
OBJCOPYFLAGS := contents,alloc,load,readonly,data
src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix ppc64 cross-compilation
2004-09-28 18:39 [PATCH] Fix ppc64 cross-compilation Roland Dreier
@ 2004-09-28 23:14 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2004-09-28 23:14 UTC (permalink / raw)
To: Roland Dreier; +Cc: Andrew Morton, Linux Kernel list
On Wed, 2004-09-29 at 04:39, Roland Dreier wrote:
> After the "ppc64 monster cleanup," I get
>
> powerpc-750-linux-gnu-strip: vmlinux: File format not recognized
>
> from my ppc32 strip command when cross-compiling a ppc64 kernel, since
> vmlinux is a 64-bit ELF file. This patch fixes my build (and the
> resulting kernel boots fine).
Andrew: Looks good.
Ben.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-28 23:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-28 18:39 [PATCH] Fix ppc64 cross-compilation Roland Dreier
2004-09-28 23:14 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox