Update Teensy.mk

This commit is contained in:
Baciu Vlad-Eusebiu 2023-12-12 00:31:51 +02:00 committed by GitHub
parent f131b9a219
commit 26f49be75b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,10 @@ include $(ARDMK_DIR)/Common.mk
ARDMK_VENDOR = teensy
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/avr/cores/teensy3
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/avr/boards.txt
HEX_PATH := $(wildcard $(shell cygpath -w $(abspath $(OBJDIR))))
# get hex path from the build directory. if path is cygwin based (cygdrive/path/example/), just discard cygwin root when calling Windows-native applications
UNAME := $(shell uname)
HEX_PATH := $(if $(findstring CYGWIN,$(UNAME)),$(subst cygdrive/,,$(OBJDIR)),$(OBJDIR))
ifndef F_CPU
ifndef BOARD_SUB