Update Teensy.mk

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

View file

@ -38,8 +38,13 @@ ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/avr/cores/teensy3
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/avr/boards.txt
# 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))
ifeq ($(shell uname | grep -c "CYGWIN"), 1)
HEX_PATH = $(shell cygpath -w $(abspath $(OBJDIR)))
HEX_PATH := $(subst \,/, $(HEX_PATH))
else
# Default for non-Cygwin environments
HEX_PATH = $(abspath $(OBJDIR))
endif
ifndef F_CPU
ifndef BOARD_SUB