comparison g23m/select_target.sh @ 15:118ecc51e1d2

support for multiple targets: gtamodem and fcdev3b
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 23 Sep 2016 05:45:46 +0000
parents
children
comparison
equal deleted inserted replaced
14:91fb52ecb228 15:118ecc51e1d2
1 #!/bin/sh
2
3 if [ $# != 1 ]
4 then
5 echo "usage: $0 target" 1>&2
6 exit 1
7 fi
8
9 if [ ! -f "targets/$1.h" -o ! -f "targets/$1.inc" ]
10 then
11 echo "Error: target $1 not known" 1>&2
12 exit 1
13 fi
14
15 . "targets/$1.inc"
16
17 set -e
18
19 gsmlong=gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0
20
21 (cd __out__/$gsmlong/lib; ln -sf "main-$MAIN_variant.lib" main.lib)
22
23 mkdir -p __out__/$gsmlong/config
24
25 (cd __out__/$gsmlong/config; ln -sf "../../../targets/$1.h" fc-target.cfg)