aboutsummaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-03 16:47:44 -0600
committerSelene ToyKeeper2018-11-03 16:47:44 -0600
commitf58d398e0d8889dac90f533b8099a328e7792802 (patch)
treefca80af5f1956c9edfe530415e5f0de7a68b2d52 /bin/build.sh
parentApplied recent updates to FSM build scripts, and added some really simple Mak... (diff)
downloadanduril-f58d398e0d8889dac90f533b8099a328e7792802.tar.gz
anduril-f58d398e0d8889dac90f533b8099a328e7792802.tar.bz2
anduril-f58d398e0d8889dac90f533b8099a328e7792802.zip
Added a help message to build.sh and flash.sh
Diffstat (limited to 'bin/build.sh')
-rwxr-xr-xbin/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 6920a3f..ddd2a72 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -3,6 +3,12 @@
# 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 MCU=attiny$ATTINY