binprep: hook the binmunge extensions up, move the analyzer into the other path
authorAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:54:55 +0000 (14:54 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:54:55 +0000 (14:54 +0000)
Needless to say the analyzer gets completely confused when facing a banked
binary

Kernel/tools/binprep

index 974bd4a..d815dd6 100755 (executable)
@@ -1,8 +1,11 @@
 #!/bin/sh
 tools/bihx fuzix.ihx
 if grep -q _STUBS fuzix.map ; then
-       tools/bmunge
+       BASE=`grep "s__STUBS " fuzix.map |cut -b10-13`
+       LEN=`grep "l__STUBS " fuzix.map |cut -b10-13`
+       tools/binmunge $BASE-$LEN
 else
+       tools/analysemap <fuzix.map
        makebin -s 65536 -p common.ihx >fuzix.tmp
        tools/binman fuzix.tmp fuzix.map fuzix.bin
 fi