···88 # For message printing: pad the right side of the first argument with spaces to
99 # the number of bytes indicated by the second argument.
1010-space_pad_to = $(shell echo $(1) " " | head -c$(2))
1111-+space_pad_to = $(shell echo $(1) " " | head -n$(2))
1111++space_pad_to = $(shell echo $(1) " " | dd bs=1 count=$(2) status=none)
12121313 # Call with some text, and a prefix tag if desired (like [AUTODETECTED]),
1414 show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1))
···2020+ ifeq ($(UNAME_S),OpenBSD)
2121+ CURRENT_OS = OPENBSD
2222+ ifndef ARDUINO_DIR
2323-+ ARDUINO_DIR = /usr/local/share/arduino
2323++ ARDUINO_DIR = ${LOCALBASE}/share/arduino
2424+ endif
2525+ ifndef ALTERNATE_CORE_PATH
2626+ ALTERNATE_CORE_PATH = $(ARDUINO_DIR)
···11-$OpenBSD$
22-33-Index: bin/robotis-loader
44---- bin/robotis-loader.orig
55-+++ bin/robotis-loader
66-@@ -1,4 +1,4 @@
77--#!/usr/bin/python
88-+#!/usr/bin/python2.7
99-1010- # This script sends a program on a robotis board (OpenCM9.04 or CM900)
1111- # using the robotis bootloader (used in OpenCM IDE)