diff options
| author | Selene ToyKeeper | 2018-11-03 16:54:18 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-11-03 16:54:18 -0600 |
| commit | b4d8f74c5fa32b974d7af8c71927822667a24643 (patch) | |
| tree | 2ea10ed0a9926b7eecf3080ffccc3b22c1a5a9ef /bin/build.sh | |
| parent | Corrected anduril.txt with the new aux LED button mappings. (diff) | |
| parent | Added a help message to build.sh and flash.sh (diff) | |
| download | anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.tar.gz anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.tar.bz2 anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.zip | |
merged trunk and flash-safer branch (clean up flash/build scripts and make flashing less likely to produce bricks)
Diffstat (limited to 'bin/build.sh')
| -rwxr-xr-x | bin/build.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh index c1f0446..ddd2a72 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -3,8 +3,14 @@ # Instead of using a Makefile, since most of the firmwares here build in the # same exact way, here's a script to do the same thing +if [ -z "$1" ]; then + echo "Usage: build.sh MCU myprogram" + echo "MCU is a number, like '13' for attiny13 or '841' for attiny841" + exit +fi + +export ATTINY=$1 ; shift export PROGRAM=$1 ; shift -export ATTINY=13 export MCU=attiny$ATTINY export CC=avr-gcc export OBJCOPY=avr-objcopy |
