FreeCalypso > hg > freecalypso-sw
annotate loadtools/install-helpers.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 | 7ef814efbebe |
children |
rev | line source |
---|---|
384
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #!/bin/sh |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # A functional installation of FreeCalypso loadtools consists of not only |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 # the fc-* host binaries, but also the loadagent and compalstage target |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 # binaries and some script and help files. This shell script is |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 # responsible for installing the latter. |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 instdir=/usr/local/share/freecalypso |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 set -ex |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 mkdir -p $instdir |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 # The target-binaries directory may or may not be present. Loadagent and |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 # compalstage are built in the target-utils tree with the ARM7 toolchain, |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 # hence having prebuilt binaries would be an important convenience for |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 # end user releases. But if one is working with just a source tree, with |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 # nothing prebuilt, there will be no target-binaries directory here; |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 # one needs to have the ARM7 toolchain installed, then build target-utils, |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 # then do a 'make install' there. |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 if [ -d target-binaries ] |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 then |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 install -c target-binaries/* $instdir |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 fi |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 # scripts and loadtool.help should always be present |
7ef814efbebe
loadtools: make install logic refactored in light of compalstage addition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 install -c scripts/* loadtool.help $instdir |