Lines Matching refs:kernel
6 # This script takes a kernel binary and optionally an initrd image
17 # -c cache $kernel.strip.gz (use if present & newer, else make)
38 kernel=
166 # the kernel tree. So keeping this around for backwards compatibility.
174 [ -z "$kernel" ] || usage
175 kernel="$1"
192 if [ -z "$kernel" ]; then
193 kernel=vmlinux
196 LC_ALL=C elfformat="`${CROSS}objdump -p "$kernel" | grep 'file format' | awk '{print $4}'`"
206 # this script (wrapper) is distributed separately from the kernel source.
248 ksection=.kernel:vmlinux.strip
249 isection=.kernel:initrd
250 esection=.kernel:esm_blob
334 ksection=.kernel:vmlinux.bin
335 isection=.kernel:initrd
396 vmz="$tmpdir/`basename \"$kernel\"`.$ext"
399 ${CROSS}objcopy $objflags "$kernel" "$vmz.$$"
402 if [ -z "$cacheit" -o ! -f "$vmz$compression" -o "$vmz$compression" -ot "$kernel" ]; then
443 echo "INFO: Uncompressed kernel (size 0x$(printf "%x\n" $strip_size))" \
450 # Extract kernel version information, some platforms want to include
452 version=`${CROSS}strings "$kernel" | grep '^Linux version [-0-9.]' | \
458 # physical offset of kernel image
459 membase=`${CROSS}objdump -p "$kernel" | grep -m 1 LOAD | awk '{print $7}'`
464 ${MKIMAGE} -A ppc -O linux -T kernel -C $uboot_comp -a $membase -e $membase \
509 addsec $tmp "$dtb" .kernel:dtb
549 ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \
564 # a binary image of the kernel to be at addr zero, and yet have a