aboutsummaryrefslogtreecommitdiff
path: root/Teensy.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Teensy.mk')
-rw-r--r--Teensy.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Teensy.mk b/Teensy.mk
index edbdbb4..9e986a8 100644
--- a/Teensy.mk
+++ b/Teensy.mk
@@ -46,7 +46,12 @@ ifndef PARSE_TEENSY
PARSE_TEENSY = $(shell grep -v "^\#" "$(BOARDS_TXT)" | grep $(1).$(2) | cut -d = -f 2,3 )
endif
+# if boards.txt gets modified, look there, else hard code it
ARCHITECTURE = $(call PARSE_TEENSY,$(BOARD_TAG),build.architecture)
+ifeq ($(strip $(MONITOR_PORT)),)
+ ARCHITECTURE = arm
+endif
+
AVR_TOOLS_DIR = $(call dir_if_exists,$(ARDUINO_DIR)/hardware/tools/$(ARCHITECTURE))
# define plaform lib dir ignoring teensy's oversight on putting it all in avr