FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/config.sh @ 90:5c1e6b7b5bd1
nuc-fw: cheezy config.sh hand-holding script created
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 25 Aug 2013 19:27:40 +0000 |
parents | |
children | 3b2e941043d8 |
comparison
equal
deleted
inserted
replaced
89:d01098eccf21 | 90:5c1e6b7b5bd1 |
---|---|
1 #!/bin/sh | |
2 # This shell script is meant to be invoked directly by users; no Makefile | |
3 # or other script invokes it. The purpose of this script to hand-hold | |
4 # the user through creating a minimal valid build.conf file (without the | |
5 # user having some existing one) to allow the build to proceed. | |
6 | |
7 echo 'Please select the target you wish to build the firmware for:' | |
8 echo | |
9 echo '1: Closedmoko GTA01/02 GSM modem' | |
10 echo '2: Pirelli DP-L10 feature phone' | |
11 echo | |
12 echo -n 'Please make your selection: ' | |
13 read userinput | |
14 | |
15 case "$userinput" in | |
16 1) | |
17 TARGET=gtamodem | |
18 ;; | |
19 2) | |
20 TARGET=pirelli | |
21 ;; | |
22 *) | |
23 echo 'Invalid selection' | |
24 exit 1; | |
25 ;; | |
26 esac | |
27 | |
28 echo | |
29 echo "target $TARGET" > build.conf | |
30 echo "build.conf created; you can now run 'make'" | |
31 exit 0 |