FreeCalypso > hg > leo2moko-debug
annotate g23m/copyout.sh @ 21:be8bbcbf2163
pdt_2092: unsuccessful attempts to make LCD output fit into RVT
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 06 Sep 2015 08:38:36 +0000 |
parents | c6c83ac3c1fb |
children |
rev | line source |
---|---|
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #!/bin/sh |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # This shell script copies and renames the final output files from TI's |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 # nasty build system. The latter gives these files insanely long names, |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 # hence we need to rename them before we can work with them comfortably. |
20
c6c83ac3c1fb
copyout.sh: produce a binary version of the flashable image
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
5 # We also produce a binary version for more reliable flashing with |
c6c83ac3c1fb
copyout.sh: produce a binary version of the flashable image
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
6 # fc-loadtool. (We can do a CRC-32 check when flashing a binary image, |
c6c83ac3c1fb
copyout.sh: produce a binary version of the flashable image
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
7 # but it is more difficult with SREC.) |
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 if [ "$1" = mfw -o "$1" = 2092 ] |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 then |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 mmi_type=mfw |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 mmi_abbr=mf |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 else |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 mmi_type=aci |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 mmi_abbr=ac |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 fi |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 long_name=gsm_${mmi_abbr}_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 out=${mmi_type}-build |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 set -e |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 mkdir -p $out |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 for ft in m0 map out |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 do |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 done |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 cp -p __out__/$long_name/bin/str2ind.tab $out |
20
c6c83ac3c1fb
copyout.sh: produce a binary version of the flashable image
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
29 mokosrec2bin $out/$out.m0 $out/$out.bin FF |