URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [scripts/] [extract-ikconfig] - Rev 1774
Go to most recent revision | Compare with Previous | Blame | View Log
#! /bin/bash -x# extracts .config info from a [b]zImage file# uses: binoffset (new), dd, zcat, strings, grep# $arg1 is [b]zImage filenameHDR=`binoffset $1 0x1f 0x8b 0x08 0x0`PID=$$TMPFILE="$1.vmlin.$PID"# dd if=$1 bs=1 skip=$HDR | zcat - | strings /dev/stdin \# | grep "[A-Za-z_0-9]=[ynm]$" | sed "s/^/CONFIG_/" > $1.oldconfig.$PID# exitdd if=$1 bs=1 skip=$HDR | zcat - > $TMPFILEstrings $TMPFILE | grep "^[\#[:blank:]]*CONFIG_[A-Za-z_0-9]*" > $1.oldconfig.$PIDwc $1.oldconfig.$PIDrm $TMPFILE
Go to most recent revision | Compare with Previous | Blame | View Log
