Commit:     928b9695592921957289d038ee75f613d9485a0a
Parent:     3a1c81f4faa8f93a36533fa8900a2f488528aab9
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 3 13:48:03 2007 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Dec 6 14:44:30 2007 +1100

    [POWERPC] Create otheros.bld next to specified output file, not in $object 
    The bootwrapper script currently generates an 'otheros.bld' file in
    addition to the file specified by the -o option, when asked to build a
    wrapper for PS3.
    It should do that in the same directory as the output, not the directory
    where the wrapper objects are kept (which might potentially not be
    writable when the script runs).
    Arguably, the 'otheros.bld' ought to be created with the filename
    specified as the -o argument. But that's a more intrusive change.
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
    Acked-by: Geoff Levand <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/boot/wrapper |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 31147a0..221b8c8 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -287,8 +287,6 @@ ps3)
-    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"
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to