Skip to contentSkip to conversation

Fix ppc64 cross-compilation

PATCH In review Roland Dreier 2 participants 2 messages Sep 28, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix ppc64 cross-compilation

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

arch/ppc64/boot/Makefile +1 -1
Index: linux-bk/arch/ppc64/boot/Makefile
===================================================================
@@ -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
#1 lore raw
Quoted 7 lines · Roland Dreier

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.