Board_AVR: locate recently-moved boards.txt file in arduino-core

This commit is contained in:
squilter 2015-07-31 19:24:23 -07:00 committed by Andrew Tridgell
parent c87929e907
commit 9cfc7a48da
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ BOARD ?= mega2560
# Find the hardware directory to use
HARDWARE_DIR := $(firstword $(wildcard $(SKETCHBOOK)/hardware/$(HARDWARE) \
$(ARDUINO)/hardware/$(HARDWARE)))
$(ARDUINO)/hardware/$(HARDWARE)/avr \
$(ARDUINO)/hardware/$(HARDWARE) \
)\
)
ifeq ($(HARDWARE_DIR),)
$(error ERROR: hardware directory for $(HARDWARE) not found)
endif