Prefix avr-size so it works on platforms without avr-size in the path

pull/18/head
Jesse Vincent 9 years ago
parent aa9c30fa5a
commit c8c7bbe316

@ -5,6 +5,7 @@ BOARD = model01
MCU = atmega32u4 MCU = atmega32u4
DEVICE_PORT := `ls /dev/cu.usbmodemHID??` DEVICE_PORT := `ls /dev/cu.usbmodemHID??`
DEVICE_PORT := `ls /dev/cu.usbmodem14?1`
DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14?1` DEVICE_PORT_BOOTLOADER := `ls /dev/cu.usbmodem14?1`
ARDUINO_LIBS = ARDUINO_LIBS =
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always) GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always)
@ -58,7 +59,7 @@ compile: dirs
cp $(BUILD_PATH)/$(SKETCH).elf $(ELF_FILE_PATH) cp $(BUILD_PATH)/$(SKETCH).elf $(ELF_FILE_PATH)
size: compile 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: reset-device:
stty -f $(DEVICE_PORT) 1200 ; stty -f $(DEVICE_PORT) 1200 ;

Loading…
Cancel
Save