From 4a18a35a91f6650deea92052c9fb74c1b90d7428 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 11 Jan 2010 04:44:45 +0000 Subject: Merge xburst target. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19098 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry (limited to 'target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry') 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 -- cgit v1.2.3