openbsd-ports/devel/arduino-makefile/patches/patch-Teensy_mk
2022-03-11 18:49:30 +00:00

13 lines
640 B
Plaintext

Index: Teensy.mk
--- Teensy.mk.orig
+++ Teensy.mk
@@ -204,7 +204,7 @@ MCU := $(shell echo ${CPUFLAGS} | sed -n -e 's/.*-mcpu
do_upload: override get_monitor_port=""
AVRDUDE=@true
-RESET_CMD = nohup $(ARDUINO_DIR)/hardware/tools/teensy_post_compile -board=$(BOARD_TAG) -tools=$(abspath $(ARDUINO_DIR)/hardware/tools) -path=$(abspath $(OBJDIR)) -file=$(TARGET) > /dev/null ; $(ARDUINO_DIR)/hardware/tools/teensy_reboot
+RESET_CMD = teensyloader -w --mcu=$(call PARSE_TEENSY,$(BOARD_TAG),build.board) $(TARGET_HEX)
########################################################################
# automatially include Arduino.mk for the user