aboutsummaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-08 17:45:09 -0700
committerSelene ToyKeeper2018-11-08 17:45:09 -0700
commite143d03198ff1d16cc91ed94d5ea529170e9bfbf (patch)
tree0f5ebc8816bea516722dfec7ea832994e4b3c9bf /bin/build.sh
parentadded lantern pin layout (diff)
parentMade it easier to override hwdef-*.h values in cfg-*.h files. (diff)
downloadanduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.tar.gz
anduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.tar.bz2
anduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.zip
merged upstream changes from fsm branch
Diffstat (limited to 'bin/build.sh')
-rwxr-xr-xbin/build.sh8
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