diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-01-11 04:44:45 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-01-11 04:44:45 +0000 |
commit | 4a18a35a91f6650deea92052c9fb74c1b90d7428 (patch) | |
tree | 9f8851bc32dbcd5a39bcb13ecf294dff3902aeab /target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry | |
parent | 2710572b04ad8ad7b1e100083efbec70f8b61007 (diff) | |
download | upstream-4a18a35a91f6650deea92052c9fb74c1b90d7428.tar.gz upstream-4a18a35a91f6650deea92052c9fb74c1b90d7428.tar.bz2 upstream-4a18a35a91f6650deea92052c9fb74c1b90d7428.zip |
Merge xburst target.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19098 3c298f89-4303-0410-b956-a3cf2f4a3e73
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/entry | 12 |
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 0000000000..376e822a63 --- /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 |