diff options
| author | Gabriel Hart | 2021-08-12 11:15:48 -0500 |
|---|---|---|
| committer | Gabriel Hart | 2021-08-12 11:15:48 -0500 |
| commit | 1d3a4d7996ca5b046287f28db145eb3d09c9c495 (patch) | |
| tree | 91aa3228f2781f9e43b2ee0f721778db9678ccce /bin/build.sh | |
| parent | Finalized SP10S and renamed to SP10 Pro. Updated Sofirn settings to include SOS. (diff) | |
| parent | got PFM / dynamic PWM actually working on Noctigon KR4 (diff) | |
| download | anduril-1d3a4d7996ca5b046287f28db145eb3d09c9c495.tar.gz anduril-1d3a4d7996ca5b046287f28db145eb3d09c9c495.tar.bz2 anduril-1d3a4d7996ca5b046287f28db145eb3d09c9c495.zip | |
Merge updates from TKs main branch
Diffstat (limited to 'bin/build.sh')
| -rwxr-xr-x | bin/build.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/build.sh b/bin/build.sh index c733320..aa983c8 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -12,9 +12,18 @@ fi export ATTINY=$1 ; shift export PROGRAM=$1 ; shift -# path to the Atmel ATtiny device family pack: (for attiny1616 support) +# give a more useful error message when AVR DFP is needed but not installed +# (Atmel ATtiny device family pack, for attiny1616 support) # http://packs.download.atmel.com/ -if [ -z "$ATTINY_DFP" ]; then export ATTINY_DFP=~/avr/attiny_dfp ; fi +#if [ -z "$ATTINY_DFP" ]; then export ATTINY_DFP=~/avr/attiny_dfp ; fi +SERIES1=' 416 417 816 817 1616 1617 3216 3217 ' +if [[ $SERIES1 =~ " $ATTINY " ]]; then + if [ -z "$ATTINY_DFP" ]; then + echo "ATtiny$ATTINY support requires Atmel attiny device family pack." + echo "More info is in /README under tiny1616 support." + exit 1 + fi +fi export MCU=attiny$ATTINY export CC=avr-gcc |
