mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 09:19:34 +02:00
809c03fe4c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19098 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
334 B
Bash
13 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
|