comparison g23m/copyout.sh @ 30:2a63c80c59d5

copyout.sh: enhanced version from current leo2moko-debug imported
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Fri, 23 Oct 2015 00:05:52 +0000
parents 7df028236331
children
comparison
equal deleted inserted replaced
29:000bf2b7521e 30:2a63c80c59d5
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