aboutsummaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-11-25 18:46:03 -0700
committerSelene ToyKeeper2019-11-25 18:46:03 -0700
commit2cf2c42678a5cd92bbfa3096101ceaea984df1dd (patch)
tree32931a8fd5f65b5ba93a972c43d35f160372b8ce /bin/build.sh
parentincreased Noctigon K1's default temperature limit to 55 C (diff)
parentenabled muggle mode again in all build targets, since it fits now (diff)
downloadanduril-2cf2c42678a5cd92bbfa3096101ceaea984df1dd.tar.gz
anduril-2cf2c42678a5cd92bbfa3096101ceaea984df1dd.tar.bz2
anduril-2cf2c42678a5cd92bbfa3096101ceaea984df1dd.zip
merged upstream fsm branch
Diffstat (limited to 'bin/build.sh')
-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'