aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-xarch/powerpc/boot/wrapper8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index b8e4856af75..a591ced4787 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -45,6 +45,7 @@ CROSS=
45 45
46# directory for object and other files used by this script 46# directory for object and other files used by this script
47object=arch/powerpc/boot 47object=arch/powerpc/boot
48objbin=$object
48 49
49# directory for working files 50# directory for working files
50tmpdir=. 51tmpdir=.
@@ -95,6 +96,7 @@ while [ "$#" -gt 0 ]; do
95 shift 96 shift
96 [ "$#" -gt 0 ] || usage 97 [ "$#" -gt 0 ] || usage
97 object="$1" 98 object="$1"
99 objbin="$1"
98 ;; 100 ;;
99 -W) 101 -W)
100 shift 102 shift
@@ -249,11 +251,11 @@ fi
249# post-processing needed for some platforms 251# post-processing needed for some platforms
250case "$platform" in 252case "$platform" in
251pseries|chrp) 253pseries|chrp)
252 $object/addnote "$ofile" 254 $objbin/addnote "$ofile"
253 ;; 255 ;;
254coff) 256coff)
255 ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile" 257 ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile"
256 $object/hack-coff "$ofile" 258 $objbin/hack-coff "$ofile"
257 ;; 259 ;;
258cuboot*) 260cuboot*)
259 gzip -f -9 "$ofile" 261 gzip -f -9 "$ofile"
@@ -262,7 +264,7 @@ cuboot*)
262 ;; 264 ;;
263treeboot*) 265treeboot*)
264 mv "$ofile" "$ofile.elf" 266 mv "$ofile" "$ofile.elf"
265 $object/mktree "$ofile.elf" "$ofile" "$base" "$entry" 267 $objbin/mktree "$ofile.elf" "$ofile" "$base" "$entry"
266 if [ -z "$cacheit" ]; then 268 if [ -z "$cacheit" ]; then
267 rm -f "$ofile.elf" 269 rm -f "$ofile.elf"
268 fi 270 fi