aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/wrapper
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-02 21:48:03 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-05 22:44:30 -0500
commit928b9695592921957289d038ee75f613d9485a0a (patch)
tree5176035365540dda757946b29544210a976f50fd /arch/powerpc/boot/wrapper
parent3a1c81f4faa8f93a36533fa8900a2f488528aab9 (diff)
[POWERPC] Create otheros.bld next to specified output file, not in $object directory
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 <dwmw2@infradead.org> Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-xarch/powerpc/boot/wrapper6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 31147a037728..221b8c87f57e 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -287,8 +287,6 @@ ps3)
287 overlay_dest="256" 287 overlay_dest="256"
288 overlay_size="256" 288 overlay_size="256"
289 289
290 rm -f "$object/otheros.bld"
291
292 ${CROSS}objcopy -O binary "$ofile" "$ofile.bin" 290 ${CROSS}objcopy -O binary "$ofile" "$ofile.bin"
293 291
294 dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \ 292 dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
@@ -299,6 +297,8 @@ ps3)
299 skip=$system_reset_overlay seek=$overlay_dest \ 297 skip=$system_reset_overlay seek=$overlay_dest \
300 count=$overlay_size bs=1 298 count=$overlay_size bs=1
301 299
302 gzip --force -9 --stdout "$ofile.bin" > "$object/otheros.bld" 300 odir="$(dirname "$ofile.bin")"
301 rm -f "$odir/otheros.bld"
302 gzip --force -9 --stdout "$ofile.bin" > "$odir/otheros.bld"
303 ;; 303 ;;
304esac 304esac