wrapper (d9c5841e22231e4e49fd0a1004164e6fce59b7a6) wrapper (b4e8c8dd8456c1d3685fb5b715c9795d250f500e)
1#!/bin/sh
2
3# Copyright (C) 2006 Paul Mackerras, IBM Corporation <paulus@samba.org>
4# This program may be used under the terms of version 2 of the GNU
5# General Public License.
6
7# This script takes a kernel binary and optionally an initrd image
8# and/or a device-tree blob, and creates a bootable zImage for a

--- 135 unchanged lines hidden (view full) ---

144isection=.kernel:initrd
145link_address='0x400000'
146
147case "$platform" in
148pseries)
149 platformo=$object/of.o
150 link_address='0x4000000'
151 ;;
1#!/bin/sh
2
3# Copyright (C) 2006 Paul Mackerras, IBM Corporation <paulus@samba.org>
4# This program may be used under the terms of version 2 of the GNU
5# General Public License.
6
7# This script takes a kernel binary and optionally an initrd image
8# and/or a device-tree blob, and creates a bootable zImage for a

--- 135 unchanged lines hidden (view full) ---

144isection=.kernel:initrd
145link_address='0x400000'
146
147case "$platform" in
148pseries)
149 platformo=$object/of.o
150 link_address='0x4000000'
151 ;;
152maple)
153 platformo=$object/of.o
154 link_address='0x400000'
155 ;;
152pmac|chrp)
153 platformo=$object/of.o
154 ;;
155coff)
156 platformo=$object/of.o
157 lds=$object/zImage.coff.lds
158 link_address='0x500000'
159 ;;

--- 72 unchanged lines hidden (view full) ---

232xpedite52*)
233 link_address='0x1400000'
234 platformo=$object/cuboot-85xx.o
235 ;;
236gamecube|wii)
237 link_address='0x600000'
238 platformo="$object/$platform-head.o $object/$platform.o"
239 ;;
156pmac|chrp)
157 platformo=$object/of.o
158 ;;
159coff)
160 platformo=$object/of.o
161 lds=$object/zImage.coff.lds
162 link_address='0x500000'
163 ;;

--- 72 unchanged lines hidden (view full) ---

236xpedite52*)
237 link_address='0x1400000'
238 platformo=$object/cuboot-85xx.o
239 ;;
240gamecube|wii)
241 link_address='0x600000'
242 platformo="$object/$platform-head.o $object/$platform.o"
243 ;;
244treeboot-iss4xx-mpic)
245 platformo="$object/treeboot-iss4xx.o"
246 ;;
240esac
241
242vmz="$tmpdir/`basename \"$kernel\"`.$ext"
243if [ -z "$cacheit" -o ! -f "$vmz$gzip" -o "$vmz$gzip" -ot "$kernel" ]; then
244 ${CROSS}objcopy $objflags "$kernel" "$vmz.$$"
245
246 if [ -n "$gzip" ]; then
247 gzip -f -9 "$vmz.$$"

--- 68 unchanged lines hidden (view full) ---

316
317if [ -n "$binary" ]; then
318 mv "$ofile" "$ofile".elf
319 ${CROSS}objcopy -O binary "$ofile".elf "$ofile"
320fi
321
322# post-processing needed for some platforms
323case "$platform" in
247esac
248
249vmz="$tmpdir/`basename \"$kernel\"`.$ext"
250if [ -z "$cacheit" -o ! -f "$vmz$gzip" -o "$vmz$gzip" -ot "$kernel" ]; then
251 ${CROSS}objcopy $objflags "$kernel" "$vmz.$$"
252
253 if [ -n "$gzip" ]; then
254 gzip -f -9 "$vmz.$$"

--- 68 unchanged lines hidden (view full) ---

323
324if [ -n "$binary" ]; then
325 mv "$ofile" "$ofile".elf
326 ${CROSS}objcopy -O binary "$ofile".elf "$ofile"
327fi
328
329# post-processing needed for some platforms
330case "$platform" in
324pseries|chrp)
331pseries|chrp|maple)
325 $objbin/addnote "$ofile"
326 ;;
327coff)
328 ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile"
329 $objbin/hack-coff "$ofile"
330 ;;
331cuboot*)
332 gzip -f -9 "$ofile"

--- 49 unchanged lines hidden ---
332 $objbin/addnote "$ofile"
333 ;;
334coff)
335 ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile"
336 $objbin/hack-coff "$ofile"
337 ;;
338cuboot*)
339 gzip -f -9 "$ofile"

--- 49 unchanged lines hidden ---