|
|
|
@ -17,10 +17,10 @@ if [ -z "${ARCH}" ]; then
|
|
|
|
|
ARCH=$(echo "${FQBN}" | sed -n -e 's/^[^:]\+:\([^:]\+\).*/\1/p')
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "${ARCH}" = "x86" ]; then
|
|
|
|
|
FQBN="${FQBN:-keyboardio:x86:${BOARD}}"
|
|
|
|
|
if [ "${ARCH}" = "virtual" ]; then
|
|
|
|
|
FQBN="${FQBN:-keyboardio:virtual:${BOARD}}"
|
|
|
|
|
|
|
|
|
|
# Set the compiler path for virtual builds (x86)
|
|
|
|
|
# Set the compiler path for virtual builds
|
|
|
|
|
#
|
|
|
|
|
if [ -z "${COMPILER_PATH}" ]; then
|
|
|
|
|
COMPILER_PATH="/usr/bin"
|
|
|
|
@ -157,10 +157,10 @@ ARDUINO_IDE_VERSION="10607"
|
|
|
|
|
###### Executable paths
|
|
|
|
|
######
|
|
|
|
|
|
|
|
|
|
# Allow the compiler path to be empty for x86 builds
|
|
|
|
|
# Allow the compiler path to be empty for virtual builds
|
|
|
|
|
COMPILER_PATH="${COMPILER_PATH-${ARDUINO_TOOLS_PATH}/avr/bin/}"
|
|
|
|
|
|
|
|
|
|
# Allow the compiler prefix to be empty for x86 builds
|
|
|
|
|
# Allow the compiler prefix to be empty for virtual builds
|
|
|
|
|
COMPILER_PREFIX="${COMPILER_PREFIX-avr-}"
|
|
|
|
|
AVR_SIZE="${AVR_SIZE:-${COMPILER_PATH}/${COMPILER_PREFIX}size}"
|
|
|
|
|
AVR_SIZE_FLAGS="${AVR_SIZE_FLAGS:--C --mcu=${MCU}}"
|
|
|
|
|