aboutsummaryrefslogtreecommitdiff
path: root/bin/build-85.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-08-22 17:46:28 -0600
committerSelene ToyKeeper2018-08-22 17:46:28 -0600
commitcdadf7454342e841fdadd44fb5fe29ed78135af6 (patch)
tree277ce22c86b193696a0db55d967e7ca31a472576 /bin/build-85.sh
parentshould stop coding for today, undo custom changes not to be commited (diff)
downloadanduril-cdadf7454342e841fdadd44fb5fe29ed78135af6.tar.gz
anduril-cdadf7454342e841fdadd44fb5fe29ed78135af6.tar.bz2
anduril-cdadf7454342e841fdadd44fb5fe29ed78135af6.zip
Reduced ROM size back to pre-branch levels
(aside from 6 extra bytes to fix interaction between aux LEDs and lockout moon). Fixed typos: lightening, tactial. Replaced new switch/case clauses with if/else clauses, to reduce ROM size. Added -fshort-enums to gcc options to reduce ROM size.
Diffstat (limited to '')
-rwxr-xr-xbin/build-85.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-85.sh b/bin/build-85.sh
index 8e3704b..f0cf1b9 100755
--- a/bin/build-85.sh
+++ b/bin/build-85.sh
@@ -8,7 +8,7 @@ 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../../.."
+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'