FreeCalypso > hg > tcs211-fcmodem
annotate g23m/select_target.sh @ 21:0f832c4c3db8 default tip
README for the tcs211-fcmodem tree
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 23 Sep 2016 19:58:17 +0000 |
parents | 118ecc51e1d2 |
children |
rev | line source |
---|---|
15
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #!/bin/sh |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 if [ $# != 1 ] |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 then |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 echo "usage: $0 target" 1>&2 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 exit 1 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 fi |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 if [ ! -f "targets/$1.h" -o ! -f "targets/$1.inc" ] |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 then |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 echo "Error: target $1 not known" 1>&2 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 exit 1 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 fi |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 . "targets/$1.inc" |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 set -e |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 gsmlong=gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 (cd __out__/$gsmlong/lib; ln -sf "main-$MAIN_variant.lib" main.lib) |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 mkdir -p __out__/$gsmlong/config |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
118ecc51e1d2
support for multiple targets: gtamodem and fcdev3b
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 (cd __out__/$gsmlong/config; ln -sf "../../../targets/$1.h" fc-target.cfg) |