public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* arch/powerpc/boot/coff.o
@ 2007-05-25  8:14 Olaf Hering
  2007-05-30 15:29 ` [PATCH] fix zImage.coff generation for pmac Milton Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2007-05-25  8:14 UTC (permalink / raw)
  To: linuxppc-dev


Does anyone happen to know where the arch/powerpc/boot/coff.o is
supposed to come from? Current Linus tree fails since a while with the
following commands.

tar xfz /mounts/mirror/kernel/v2.6/testing/linux-2.6.22-rc2.tar.gz
cd linux-2.6.22-rc2/
mkdir ../O
cp arch/powerpc/configs/pmac32_defconfig ../O/.config
make -kj42 O=../O menuconfig
make -kj42 O=../O 

  WRAP    arch/powerpc/boot/zImage.coff
ld: arch/powerpc/boot/coff.o: No such file: No such file or directory
nm: 'arch/powerpc/boot/zImage.coff': No such file
objdump: 'arch/powerpc/boot/zImage.coff': No such file

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] fix zImage.coff generation for pmac
  2007-05-25  8:14 arch/powerpc/boot/coff.o Olaf Hering
@ 2007-05-30 15:29 ` Milton Miller
  0 siblings, 0 replies; 2+ messages in thread
From: Milton Miller @ 2007-05-30 15:29 UTC (permalink / raw)
  To: Paul Mackerras, Olaf Hering; +Cc: ppcdev

Commit 9da82a6dee9db4cd5ae7a74ab4f51afb52b6efb9 inadvertently
removed the platform override for zImage.coff to be generated
with pmaccoff.   Rather than add a special makefile rule,
change the platform for which the wrapper platform uses
the special rules.

Signed-off-by: Milton Miller <miltonm@bga•com>

---
Untested, and hopefully not too whitespace damaged.
Against upstream after 2.6.22-rc3.

We could look for both coff and pmaccoff if someone
has an external script calling wrapper with platform
pmaccoff (change to coff|pmaccoff).

Olof Hering wrote:
> Does anyone happen to know where the arch/powerpc/boot/coff.o is
> supposed to come from? Current Linus tree fails since a while with the
> following commands.
>
> tar xfz /mounts/mirror/kernel/v2.6/testing/linux-2.6.22-rc2.tar.gz
> cd linux-2.6.22-rc2/
> mkdir ../O
> cp arch/powerpc/configs/pmac32_defconfig ../O/.config
> make -kj42 O=../O menuconfig
> make -kj42 O=../O
>
>   WRAP    arch/powerpc/boot/zImage.coff
> ld: arch/powerpc/boot/coff.o: No such file: No such file or directory
> nm: 'arch/powerpc/boot/zImage.coff': No such file
> objdump: 'arch/powerpc/boot/zImage.coff': No such file


diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 5cedd90..b28161c 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -129,7 +129,7 @@ case "$platform" in
  pmac|pseries|chrp)
      platformo=$object/of.o
      ;;
-pmaccoff)
+coff)
      platformo=$object/of.o
      lds=$object/zImage.coff.lds
      ;;
@@ -217,7 +217,7 @@ case "$platform" in
  pseries|chrp)
      $object/addnote "$ofile"
      ;;
-pmaccoff)
+coff)
      entry=`objdump -f "$ofile" | grep '^start address ' | \
  	cut -d' ' -f3`
      ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile"

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-30 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25  8:14 arch/powerpc/boot/coff.o Olaf Hering
2007-05-30 15:29 ` [PATCH] fix zImage.coff generation for pmac Milton Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox