annotate gsm-fw/config.sh @ 740:5148d3d2b986

rr_em.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 05 Oct 2014 21:02:39 +0000
parents afceeeb2cba1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 #!/bin/sh
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 # This shell script is meant to be invoked directly by users; no Makefile
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 # or other script invokes it. The purpose of this script to hand-hold
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 # the user through creating a minimal valid build.conf file (without the
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 # user having some existing one) to allow the build to proceed.
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 echo 'Please select the target you wish to build the firmware for:'
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 echo
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 90
diff changeset
9 echo '1: Openmoko GTA01/02 GSM modem'
90
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 echo '2: Pirelli DP-L10 feature phone'
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 echo
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 echo -n 'Please make your selection: '
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 read userinput
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 case "$userinput" in
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 1)
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 TARGET=gtamodem
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 ;;
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 2)
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 TARGET=pirelli
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 ;;
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 *)
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 echo 'Invalid selection'
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 exit 1;
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 ;;
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 esac
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 echo
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 echo "target $TARGET" > build.conf
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 echo "build.conf created; you can now run 'make'"
5c1e6b7b5bd1 nuc-fw: cheezy config.sh hand-holding script created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 exit 0