aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-11-24 16:21:40 -0700
committerSelene ToyKeeper2019-11-24 16:21:40 -0700
commit30510a7948815f3092b8a2eff3321ad85ed5c480 (patch)
tree4a1b68628c779bf4092a64ae027917529d03e158 /bin
parentmerged changes from fsm branch, including version check and stuck-button safety (diff)
parentadded -fwhole-program gcc flag, suggested by Agro. Signficantly reduces ROM ... (diff)
downloadanduril-30510a7948815f3092b8a2eff3321ad85ed5c480.tar.gz
anduril-30510a7948815f3092b8a2eff3321ad85ed5c480.tar.bz2
anduril-30510a7948815f3092b8a2eff3321ad85ed5c480.zip
merged from upstream fsm branch to get a whole bunch of kernel-level improvements
Diffstat (limited to '')
-rwxr-xr-xbin/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh
index fbb24ea..3992c38 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -14,7 +14,7 @@ export PROGRAM=$1 ; shift
export MCU=attiny$ATTINY
export CC=avr-gcc
export OBJCOPY=avr-objcopy
-export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
+export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
export OFLAGS="-Wall -g -Os -mmcu=$MCU"
export LDFLAGS="-fgnu89-inline"
export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'