aboutsummaryrefslogtreecommitdiff
path: root/bin/build-85.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-03 16:54:18 -0600
committerSelene ToyKeeper2018-11-03 16:54:18 -0600
commitb4d8f74c5fa32b974d7af8c71927822667a24643 (patch)
tree2ea10ed0a9926b7eecf3080ffccc3b22c1a5a9ef /bin/build-85.sh
parentCorrected anduril.txt with the new aux LED button mappings. (diff)
parentAdded a help message to build.sh and flash.sh (diff)
downloadanduril-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-85.sh')
-rwxr-xr-xbin/build-85.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/build-85.sh b/bin/build-85.sh
deleted file mode 100755
index f0cf1b9..0000000
--- a/bin/build-85.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# 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
-
-export PROGRAM=$1 ; shift
-export ATTINY=85
-export MCU=attiny$ATTINY
-export CC=avr-gcc
-export OBJCOPY=avr-objcopy
-export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
-export OFLAGS="-Wall -g -Os -mmcu=$MCU"
-export LDFLAGS=
-export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
-export OBJS=$PROGRAM.o
-
-for arg in "$*" ; do
- OTHERFLAGS="$OTHERFLAGS $arg"
-done
-
-function run () {
- echo $*
- $*
- if [ x"$?" != x0 ]; then exit 1 ; fi
-}
-
-run $CC $OTHERFLAGS $CFLAGS -o $PROGRAM.o -c $PROGRAM.c
-run $CC $OFLAGS $LDFLAGS -o $PROGRAM.elf $PROGRAM.o
-run $OBJCOPY $OBJCOPYFLAGS $PROGRAM.elf $PROGRAM.hex
-run avr-size -C --mcu=$MCU $PROGRAM.elf | grep Full