FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/buildrel.sh @ 853:ae254ffeaec3
AT command interface works!
The cause of the breakage was the same Nucleus API issue with NU_Create_Timer()
which we encountered at the very beginning of this project with Riviera timers:
the code in uartfax.c from TCS211 was passing 0 as the initial dummy value for
the timer duration, and our FreeNucleus version doesn't like it. The fix is
the same: pass 1 as the initial dummy value instead.
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Thu, 30 Apr 2015 01:46:26 +0000 |
parents | e3f17ff16915 |
children |
rev | line source |
---|---|
274
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #!/bin/sh |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # Shell script for building gsm-fw release binaries |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 if [ $# != 1 ] |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 then |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 echo "usage: ./buildrel.sh buildlist" 1>&2 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 exit 1 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 fi |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 if [ ! -f "configs/buildlists/$1" ] |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 then |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 echo "Error: no buildlist named $1" 1>&2 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 exit 1 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 fi |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 # get to work |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 set -e |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 mkdir -p images |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 exec < "configs/buildlists/$1" |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 while read config imglist |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 do |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 if [ -z "$config" -o -z "$imglist" ] |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 then |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 echo "Error: bad line in configs/buildlists/$1" 1>&2 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 exit 1 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 fi |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 echo "Building $config configuration" |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 cp configs/$config build.conf |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 make clean |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 for img in $imglist |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 do |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 case "$img" in |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
36 flashImage) |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 format=bin |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 ;; |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 ramImage) |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 format=srec |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 ;; |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 *) |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 echo \ |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 "Error: invalid image type $img in configs/buildlists/$1" 1>&2 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 exit 1 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 ;; |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 esac |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 echo "Building $img" |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 make $img |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 cp -p finlink/$img.$format images/$config-$img.$format |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 cp -p finlink/$img.elf images/$config-$img.elf |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 done |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 |
e3f17ff16915
gsm-fw: buildrel.sh script for building mokoffs-edit-kit release images
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 done |