FreeCalypso > hg > tcs211-c139
annotate g23m/copyout.sh @ 30:f93155f0843b
pdt_2092 config compiles (but not ported to C139 yet)
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 03 Nov 2015 07:45:34 +0000 |
parents | 258067c2041a |
children | c56a4b0bcf38 |
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 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 if [ "$1" = mfw -o "$1" = 2092 ] |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 then |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 mmi_type=mfw |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 mmi_abbr=mf |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 else |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 mmi_type=aci |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 mmi_abbr=ac |
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 |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 for ft in m0 map out |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 do |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 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
|
30 done |
7df028236331
copyout.sh helper script added
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 cp -p __out__/$long_name/bin/str2ind.tab $out |
25
258067c2041a
copyout.sh: produce C139 flashable binary image
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
8
diff
changeset
|
32 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
|
33 dd if=$out/$out.fullbin of=$out/$out.progbin bs=65536 skip=1 |