summaryrefslogtreecommitdiff
path: root/src-avr/telescience
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-21 21:06:29 -0700
committerKeith Packard <keithp@keithp.com>2011-05-21 21:06:29 -0700
commit6c87e4f77e6072ae7e8587d327b2ff80af2c3e6a (patch)
tree45449480ce0e6bec595e290d220e7052eadbeb2e /src-avr/telescience
parent7818f9962aa3375c29e32ee75038e998eaf53df8 (diff)
src-avr: Check RAM usage for telescience
ATmega32u4 has only 2.5kB of ram, so check the output of the compiler to make sure it will work. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/telescience')
-rw-r--r--src-avr/telescience/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src-avr/telescience/Makefile b/src-avr/telescience/Makefile
index b964e1e6..2618ee06 100644
--- a/src-avr/telescience/Makefile
+++ b/src-avr/telescience/Makefile
@@ -77,8 +77,11 @@ quiet ?= $($1)
all: $(PROG)
+CHECK=sh ../check-avr-mem
+
$(PROG): Makefile $(OBJ)
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ)
+ $(call quiet,CHECK) $(PROG) || ($(RM) -f $(PROG); exit 1)
$(PROG).hex: $(PROG)
avr-size $(PROG)