FreeCalypso > hg > tcs211-c139
annotate g23m/copyout.sh @ 44:a39516059f83
gdi display.c: using D-Sample-like approach fixed the display garbage bug
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 11 Nov 2015 23:34:43 +0000 |
parents | c56a4b0bcf38 |
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. |
25
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
5 # |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
6 # We also produce a binary image for flashing with fc-loadtool. |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
7 # In this C139 version we use dd to strip off the TCS211 version of |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
8 # the bootloader (uses non-understood protocol) and produce a binary |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
9 # image that can be flashed starting at 0x10000, using our |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
10 # compal-flash-boot-for-fc.bin as the bootloader. |
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
41
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
12 if [ "$1" = aci -o "$1" = 2091 ] |
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 then |
41
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
14 mmi_type=aci |
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
15 mmi_abbr=ac |
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
16 else |
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 mmi_type=mfw |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 mmi_abbr=mf |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 fi |
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 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
|
22 out=${mmi_type}-build |
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 set -e |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 mkdir -p $out |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 |
41
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
27 echo copying $out |
8
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 for ft in m0 map out |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 do |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 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
|
31 done |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 cp -p __out__/$long_name/bin/str2ind.tab $out |
41
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
33 echo converting from m0 to binary |
25
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
34 mokosrec2bin $out/$out.m0 $out/$out.fullbin FF |
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
35 dd if=$out/$out.fullbin of=$out/$out.progbin bs=65536 skip=1 |
41
c56a4b0bcf38
winebuild.sh, copyout.sh: build MFW version by default
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
25
diff
changeset
|
36 echo $out is ready |