From 410a513d43812ea3a608898bf9d7968c5853a6f1 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 3 Dec 2007 13:48:03 +1100 Subject: [PATCH] --- yaml --- r: 80993 b: refs/heads/master c: 928b9695592921957289d038ee75f613d9485a0a h: refs/heads/master i: 80991: 0dc26145abe1adda414e9befcad262aa300ef997 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/boot/wrapper | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 1076c5cab87b..46b5c5339e2b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3a1c81f4faa8f93a36533fa8900a2f488528aab9 +refs/heads/master: 928b9695592921957289d038ee75f613d9485a0a diff --git a/trunk/arch/powerpc/boot/wrapper b/trunk/arch/powerpc/boot/wrapper index 31147a037728..221b8c87f57e 100755 --- a/trunk/arch/powerpc/boot/wrapper +++ b/trunk/arch/powerpc/boot/wrapper @@ -287,8 +287,6 @@ ps3) overlay_dest="256" overlay_size="256" - rm -f "$object/otheros.bld" - ${CROSS}objcopy -O binary "$ofile" "$ofile.bin" dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \ @@ -299,6 +297,8 @@ ps3) skip=$system_reset_overlay seek=$overlay_dest \ count=$overlay_size bs=1 - gzip --force -9 --stdout "$ofile.bin" > "$object/otheros.bld" + odir="$(dirname "$ofile.bin")" + rm -f "$odir/otheros.bld" + gzip --force -9 --stdout "$ofile.bin" > "$odir/otheros.bld" ;; esac