linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PPC BOOT] Create otheros.bld next to specified output file, not in $object directory.
@ 2007-12-03  2:48 David Woodhouse
  2007-12-03  2:49 ` [PPC BOOT] Find device-tree source file in default directory David Woodhouse
  2007-12-03  3:33 ` [PPC BOOT] Create otheros.bld next to specified output file, not in $object directory Geoff Levand
  0 siblings, 2 replies; 7+ messages in thread
From: David Woodhouse @ 2007-12-03  2:48 UTC (permalink / raw)
  To: linuxppc-dev

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>

--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -287,8 +289,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 +299,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

-- 
dwmw2

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

end of thread, other threads:[~2007-12-03 15:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03  2:48 [PPC BOOT] Create otheros.bld next to specified output file, not in $object directory David Woodhouse
2007-12-03  2:49 ` [PPC BOOT] Find device-tree source file in default directory David Woodhouse
2007-12-03  2:52   ` [PPC BOOT] Allow for bootwrapper utilities being in different directory to objects David Woodhouse
2007-12-03  2:56     ` [PPC BOOT] 'make bootwrapper_install' David Woodhouse
2007-12-03 15:08   ` [PPC BOOT] Find device-tree source file in default directory Scott Wood
2007-12-03 15:13     ` David Woodhouse
2007-12-03  3:33 ` [PPC BOOT] Create otheros.bld next to specified output file, not in $object directory Geoff Levand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).