openwrtv3/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry
Lars-Peter Clausen 541158d5ad Merge xburst target.
SVN-Revision: 19098
2010-01-11 04:44:45 +00:00

12 lines
334 B
Bash

#!/bin/sh
# grab the kernel_entry address from the vmlinux elf image
entry=`$1 $2 | grep kernel_entry`
fs=`echo $entry | grep ffffffff` # check toolchain output
if [ -n "$fs" ]; then
echo "0x"`$1 $2 | grep kernel_entry | cut -c9- | awk '{print $1}'`
else
echo "0x"`$1 $2 | grep kernel_entry | cut -c1- | awk '{print $1}'`
fi