Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73332
b: refs/heads/master
c: d474037
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely authored and Josh Boyer committed Nov 1, 2007
1 parent 892275e commit 197aa15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f66c1fd03b64db5ddb24cc2ae150c9aebe30cb4
refs/heads/master: d47403733403bec7c050cce6f6ff56dfcf80b8b7
27 changes: 10 additions & 17 deletions trunk/arch/powerpc/boot/wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# (default ./arch/powerpc/boot)
# -W dir specify working directory for temporary files (default .)

# Stop execution if any command fails
set -e

# Allow for verbose output
if [ "$V" = 1 ]; then
set -x
Expand Down Expand Up @@ -116,7 +119,7 @@ if [ -n "$dts" ]; then
if [ -z "$dtb" ]; then
dtb="$platform.dtb"
fi
dtc -O dtb -o "$dtb" -b 0 -V 16 "$dts" || exit 1
dtc -O dtb -o "$dtb" -b 0 -V 16 "$dts"
fi

if [ -z "$kernel" ]; then
Expand Down Expand Up @@ -287,23 +290,13 @@ ps3)

rm -f "$object/otheros.bld"

msg=$(dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
skip=$overlay_dest seek=$system_reset_kernel \
count=$overlay_size bs=1 2>&1)

if [ $? -ne "0" ]; then
echo $msg
exit 1
fi
dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
skip=$overlay_dest seek=$system_reset_kernel \
count=$overlay_size bs=1

msg=$(dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
skip=$system_reset_overlay seek=$overlay_dest \
count=$overlay_size bs=1 2>&1)

if [ $? -ne "0" ]; then
echo $msg
exit 2
fi
dd if="$ofile.bin" of="$ofile.bin" conv=notrunc \
skip=$system_reset_overlay seek=$overlay_dest \
count=$overlay_size bs=1

gzip --force -9 --stdout "$ofile.bin" > "$object/otheros.bld"
;;
Expand Down

0 comments on commit 197aa15

Please sign in to comment.