|
|
@ -27,10 +27,10 @@ fi
|
|
|
|
uname_S=$(uname -s 2>/dev/null || echo not)
|
|
|
|
uname_S=$(uname -s 2>/dev/null || echo not)
|
|
|
|
|
|
|
|
|
|
|
|
find_max_prog_size() {
|
|
|
|
find_max_prog_size() {
|
|
|
|
VPIDS=$(${ARDUINO_BUILDER} \
|
|
|
|
VPIDS=$("${ARDUINO_BUILDER}" \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
-hardware "${BOARD_HARDWARE_PATH}" \
|
|
|
|
-hardware "${BOARD_HARDWARE_PATH}" \
|
|
|
|
${ARDUINO_TOOLS_PARAM} \
|
|
|
|
${ARDUINO_TOOLS_FLAG:+"${ARDUINO_TOOLS_FLAG}"} ${ARDUINO_TOOLS_PARAM:+"${ARDUINO_TOOLS_PARAM}"} \
|
|
|
|
-tools "${ARDUINO_PATH}/tools-builder" \
|
|
|
|
-tools "${ARDUINO_PATH}/tools-builder" \
|
|
|
|
-fqbn "${FQBN}" \
|
|
|
|
-fqbn "${FQBN}" \
|
|
|
|
-dump-prefs | grep "upload\.maximum_size=")
|
|
|
|
-dump-prefs | grep "upload\.maximum_size=")
|
|
|
@ -38,10 +38,10 @@ find_max_prog_size() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
find_device_vid_pid() {
|
|
|
|
find_device_vid_pid() {
|
|
|
|
VPIDS=$(${ARDUINO_BUILDER} \
|
|
|
|
VPIDS=$("${ARDUINO_BUILDER}" \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
-hardware "${BOARD_HARDWARE_PATH}" \
|
|
|
|
-hardware "${BOARD_HARDWARE_PATH}" \
|
|
|
|
${ARDUINO_TOOLS_PARAM} \
|
|
|
|
${ARDUINO_TOOLS_FLAG:+"${ARDUINO_TOOLS_FLAG}"} ${ARDUINO_TOOLS_PARAM:+"${ARDUINO_TOOLS_PARAM}"} \
|
|
|
|
-tools "${ARDUINO_PATH}/tools-builder" \
|
|
|
|
-tools "${ARDUINO_PATH}/tools-builder" \
|
|
|
|
-fqbn "${FQBN}" \
|
|
|
|
-fqbn "${FQBN}" \
|
|
|
|
-dump-prefs | grep "\.[vp]id=")
|
|
|
|
-dump-prefs | grep "\.[vp]id=")
|
|
|
@ -166,7 +166,8 @@ BOARD_HARDWARE_PATH="${BOARD_HARDWARE_PATH:-${ARDUINO_LOCAL_LIB_PATH}/hardware}"
|
|
|
|
BOOTLOADER_PATH="${BOOTLOADER_PATH:-${BOARD_HARDWARE_PATH}/keyboardio/avr/bootloaders/caterina/Caterina.hex}"
|
|
|
|
BOOTLOADER_PATH="${BOOTLOADER_PATH:-${BOARD_HARDWARE_PATH}/keyboardio/avr/bootloaders/caterina/Caterina.hex}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -z "${ARDUINO_TOOLS_PATH}" ]; then
|
|
|
|
if [ ! -z "${ARDUINO_TOOLS_PATH}" ]; then
|
|
|
|
ARDUINO_TOOLS_PARAM="-tools ${ARDUINO_TOOLS_PATH}"
|
|
|
|
ARDUINO_TOOLS_PARAM="${ARDUINO_TOOLS_PATH}"
|
|
|
|
|
|
|
|
ARDUINO_TOOLS_FLAG="-tools"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -z "${AVR_GCC_PREFIX}" ]; then
|
|
|
|
if [ ! -z "${AVR_GCC_PREFIX}" ]; then
|
|
|
|