mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
yet another patchset - 2.6.27
it's basically also provided by ingenic and nativly based on 2.6.27, adjusted to fit into the OpenWrt-environment
This commit is contained in:
12
target/linux/xburst/files-2.6.27/arch/mips/boot/tools/entry
Normal file
12
target/linux/xburst/files-2.6.27/arch/mips/boot/tools/entry
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user