X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fextract-ikconfig;h=8187e6f0dc2fe6da060f99f9980dbf90707c02cf;hb=3a7029d822d3aef4502269dae5fe8fbb83672bc5;hp=ef6140dc2ded67270c88fed0db4d07baf5fd8019;hpb=66f9f59a5bfcb9efc8acad5ff0ece02fdaca6817;p=linux-2.6-omap-h63xx.git diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index ef6140dc2de..8187e6f0dc2 100755 --- a/scripts/extract-ikconfig +++ b/scripts/extract-ikconfig @@ -4,6 +4,7 @@ # $arg1 is [b]zImage filename binoffset="./scripts/binoffset" +test -e $binoffset || cc -o $binoffset ./scripts/binoffset.c || exit 1 IKCFG_ST="0x49 0x4b 0x43 0x46 0x47 0x5f 0x53 0x54" IKCFG_ED="0x49 0x4b 0x43 0x46 0x47 0x5f 0x45 0x44" @@ -20,7 +21,7 @@ function dump_config { let start="$start + 8" let size="$end - $start" - head --bytes="$end" "$file" | tail --bytes="$size" | zcat + dd if="$file" ibs=1 skip="$start" count="$size" 2>/dev/null | zcat clean_up exit 0