diff options
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index ac9e9a58b2b0..f4594ed09a20 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper | |||
@@ -43,6 +43,9 @@ gzip=.gz | |||
43 | # cross-compilation prefix | 43 | # cross-compilation prefix |
44 | CROSS= | 44 | CROSS= |
45 | 45 | ||
46 | # mkimage wrapper script | ||
47 | MKIMAGE=$srctree/scripts/mkuboot.sh | ||
48 | |||
46 | # directory for object and other files used by this script | 49 | # directory for object and other files used by this script |
47 | object=arch/powerpc/boot | 50 | object=arch/powerpc/boot |
48 | objbin=$object | 51 | objbin=$object |
@@ -230,6 +233,10 @@ xpedite52*) | |||
230 | link_address='0x1400000' | 233 | link_address='0x1400000' |
231 | platformo=$object/cuboot-85xx.o | 234 | platformo=$object/cuboot-85xx.o |
232 | ;; | 235 | ;; |
236 | gamecube|wii) | ||
237 | link_address='0x600000' | ||
238 | platformo="$object/$platform-head.o $object/$platform.o" | ||
239 | ;; | ||
233 | esac | 240 | esac |
234 | 241 | ||
235 | vmz="$tmpdir/`basename \"$kernel\"`.$ext" | 242 | vmz="$tmpdir/`basename \"$kernel\"`.$ext" |
@@ -263,7 +270,7 @@ membase=`${CROSS}objdump -p "$kernel" | grep -m 1 LOAD | awk '{print $7}'` | |||
263 | case "$platform" in | 270 | case "$platform" in |
264 | uboot) | 271 | uboot) |
265 | rm -f "$ofile" | 272 | rm -f "$ofile" |
266 | mkimage -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ | 273 | ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ |
267 | $uboot_version -d "$vmz" "$ofile" | 274 | $uboot_version -d "$vmz" "$ofile" |
268 | if [ -z "$cacheit" ]; then | 275 | if [ -z "$cacheit" ]; then |
269 | rm -f "$vmz" | 276 | rm -f "$vmz" |
@@ -323,7 +330,7 @@ coff) | |||
323 | ;; | 330 | ;; |
324 | cuboot*) | 331 | cuboot*) |
325 | gzip -f -9 "$ofile" | 332 | gzip -f -9 "$ofile" |
326 | mkimage -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \ | 333 | ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \ |
327 | $uboot_version -d "$ofile".gz "$ofile" | 334 | $uboot_version -d "$ofile".gz "$ofile" |
328 | ;; | 335 | ;; |
329 | treeboot*) | 336 | treeboot*) |