comparison g23m/copyout.sh @ 20:c6c83ac3c1fb

copyout.sh: produce a binary version of the flashable image
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 06 Sep 2015 07:02:09 +0000
parents 7df028236331
children
comparison
equal deleted inserted replaced
19:8e7d4b264c73 20:c6c83ac3c1fb
1 #!/bin/sh 1 #!/bin/sh
2 # This shell script copies and renames the final output files from TI's 2 # This shell script copies and renames the final output files from TI's
3 # nasty build system. The latter gives these files insanely long names, 3 # nasty build system. The latter gives these files insanely long names,
4 # hence we need to rename them before we can work with them comfortably. 4 # hence we need to rename them before we can work with them comfortably.
5 # We also produce a binary version for more reliable flashing with
6 # fc-loadtool. (We can do a CRC-32 check when flashing a binary image,
7 # but it is more difficult with SREC.)
5 8
6 if [ "$1" = mfw -o "$1" = 2092 ] 9 if [ "$1" = mfw -o "$1" = 2092 ]
7 then 10 then
8 mmi_type=mfw 11 mmi_type=mfw
9 mmi_abbr=mf 12 mmi_abbr=mf
21 for ft in m0 map out 24 for ft in m0 map out
22 do 25 do
23 cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft 26 cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft
24 done 27 done
25 cp -p __out__/$long_name/bin/str2ind.tab $out 28 cp -p __out__/$long_name/bin/str2ind.tab $out
29 mokosrec2bin $out/$out.m0 $out/$out.bin FF