FreeCalypso > hg > freecalypso-sw
annotate loadtools/install-helpers.sh @ 923:10b4bed10192
gsm-fw/L1: fix for the DSP patch corruption bug
The L1 code we got from the LoCosto fw contains a feature for DSP CPU load
measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier
DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the
code dealing with that feature is conditionalized as #if (DSP >= 38),
but one spot was missed, and the MCU code was writing into an API word
dealing with this feature. In TCS211 this DSP API word happens to be
used by the DSP code patch, hence that write was corrupting the patched
DSP code.
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 19 Oct 2015 17:13:56 +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 |