From c8c7bbe3165c30242a15af21ef7b0cb7fa02bc62 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 17 Feb 2016 17:19:25 -0800 Subject: [PATCH] Prefix avr-size so it works on platforms without avr-size in the path --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c9392f24..bcc712ca 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ BOARD = model01 MCU = atmega32u4 DEVICE_PORT := `ls /dev/cu.usbmodemHID??` +DEVICE_PORT := `ls /dev/cu.usbmodem14?1` DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14?1` ARDUINO_LIBS = GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always) @@ -58,7 +59,7 @@ compile: dirs cp $(BUILD_PATH)/$(SKETCH).elf $(ELF_FILE_PATH) size: compile - avr-size -C --mcu=$(MCU) $(ELF_FILE_PATH) + $(ARDUINO_TOOLS_PATH)/avr/bin/avr-size -C --mcu=$(MCU) $(ELF_FILE_PATH) reset-device: stty -f $(DEVICE_PORT) 1200 ;