Commit 6c654e21 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[PATCH] ppc64: fix 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).
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8d4198e6
...@@ -31,7 +31,6 @@ BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional ...@@ -31,7 +31,6 @@ BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional
BOOTLD := $(CROSS32_COMPILE)ld BOOTLD := $(CROSS32_COMPILE)ld
BOOTLFLAGS := -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds BOOTLFLAGS := -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds
BOOTOBJCOPY := $(CROSS32_COMPILE)objcopy BOOTOBJCOPY := $(CROSS32_COMPILE)objcopy
BOOTSTRIP := $(CROSS32_COMPILE)strip
OBJCOPYFLAGS := contents,alloc,load,readonly,data OBJCOPYFLAGS := contents,alloc,load,readonly,data
src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S
...@@ -71,7 +70,7 @@ quiet_cmd_ramdisk = RAMDISK $@ ...@@ -71,7 +70,7 @@ quiet_cmd_ramdisk = RAMDISK $@
cmd_ramdisk = $(obj)/addRamDisk $(obj)/ramdisk.image.gz $< $@ cmd_ramdisk = $(obj)/addRamDisk $(obj)/ramdisk.image.gz $< $@
quiet_cmd_stripvm = STRIP $@ quiet_cmd_stripvm = STRIP $@
cmd_stripvm = $(BOOTSTRIP) -s $< -o $@ cmd_stripvm = $(STRIP) -s $< -o $@
vmlinux.strip: vmlinux FORCE vmlinux.strip: vmlinux FORCE
$(call if_changed,stripvm) $(call if_changed,stripvm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment