summaryrefslogtreecommitdiff
path: root/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-01-11 04:44:45 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-01-11 04:44:45 +0000
commit541158d5ad4a941d927a397737b6588d2e4db22d (patch)
treee49a97f18123413611824b8993e9acff9d681bae /target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry
parentdb06ca593b3d80ec514ecb2b20d49e3638cd3f0b (diff)
downloadmtk-20170518-541158d5ad4a941d927a397737b6588d2e4db22d.zip
mtk-20170518-541158d5ad4a941d927a397737b6588d2e4db22d.tar.gz
mtk-20170518-541158d5ad4a941d927a397737b6588d2e4db22d.tar.bz2
Merge xburst target.
SVN-Revision: 19098
Diffstat (limited to 'target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry')
-rw-r--r--target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry b/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry
new file mode 100644
index 0000000..376e822
--- /dev/null
+++ b/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry
@@ -0,0 +1,12 @@
+#!/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