You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
334 B
13 lines
334 B
15 years ago
|
#!/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
|