|
|
|
@ -151,6 +151,12 @@ if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if [ "${ARCH}" = "virtual" ]; then
|
|
|
|
|
COMPILER_PREFIX="x86_64-apple-darwin19-"
|
|
|
|
|
COMPILER_SUFFIX="-10"
|
|
|
|
|
AR_BASENAME="gcc-ar"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
elif [ "${uname_S}" = "FreeBSD" ]; then
|
|
|
|
|
|
|
|
|
|
find_device_port() {
|
|
|
|
@ -169,6 +175,7 @@ elif [ "${uname_S}" = "FreeBSD" ]; then
|
|
|
|
|
AVR_OBJDUMP="${AVR_OBJDUMP:-/usr/local/bin/avr-objdump}"
|
|
|
|
|
AVRDUDE="${AVRDUDE:-/usr/local/bin/avrdude}"
|
|
|
|
|
AVRDUDE_CONF="${AVRDUDE_CONF:-/usr/local/etc/avrdude.conf}"
|
|
|
|
|
ARDUINO_BUILDER="${ARDUINO_BUILDER:-/usr/local/bin/arduino-builder}"
|
|
|
|
|
|
|
|
|
|
find_bootloader_ports() {
|
|
|
|
|
DIR=$(dirname "$0")
|
|
|
|
@ -176,6 +183,10 @@ elif [ "${uname_S}" = "FreeBSD" ]; then
|
|
|
|
|
DEVICE_PORT_BOOTLOADER="$(perl ${DEVICE_PORT_PROBER})"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if [ "${ARCH}" = "virtual" ]; then
|
|
|
|
|
COMPILER_PATH="${COMPILER_PATH:-/usr/local/bin/}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
elif [ "${uname_O}" = "Cygwin" ]; then
|
|
|
|
|
# The Windows arduino-builder.exe doesn't understand being told to exec against Cygwin symlinks
|
|
|
|
|
CCACHE_NOT_SUPPORTED=1
|
|
|
|
@ -249,8 +260,12 @@ ARDUINO_IDE_VERSION="10607"
|
|
|
|
|
# Allow the compiler path to be empty for virtual builds
|
|
|
|
|
COMPILER_PATH="${COMPILER_PATH-${ARDUINO_TOOLS_PATH}/avr/bin/}"
|
|
|
|
|
|
|
|
|
|
COMPILER_SUFFIX=""
|
|
|
|
|
|
|
|
|
|
C_COMPILER_BASENAME=$(basename ${CC:-gcc})
|
|
|
|
|
CXX_COMPILER_BASENAME=$(basename ${CXX:-g++})
|
|
|
|
|
AR_BASENAME=$(basename ${AR:-ar})
|
|
|
|
|
OBJCOPY_BASENAME=$(basename ${OBJCOPY:-objcopy})
|
|
|
|
|
|
|
|
|
|
# Allow the compiler prefix to be empty for virtual builds
|
|
|
|
|
COMPILER_PREFIX="${COMPILER_PREFIX-avr-}"
|
|
|
|
|