|
|
@ -26,6 +26,17 @@ fi
|
|
|
|
# Shamelessly stolen from git's Makefile
|
|
|
|
# Shamelessly stolen from git's Makefile
|
|
|
|
uname_S=$(uname -s 2>/dev/null || echo not)
|
|
|
|
uname_S=$(uname -s 2>/dev/null || echo not)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_max_prog_size() {
|
|
|
|
|
|
|
|
VPIDS=$(${ARDUINO_BUILDER} \
|
|
|
|
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
|
|
|
|
-hardware "${BOARD_HARDWARE_PATH}" \
|
|
|
|
|
|
|
|
${ARDUINO_TOOLS_PARAM} \
|
|
|
|
|
|
|
|
-tools "${ARDUINO_PATH}/tools-builder" \
|
|
|
|
|
|
|
|
-fqbn "${FQBN}" \
|
|
|
|
|
|
|
|
-dump-prefs | grep "upload\.maximum_size=")
|
|
|
|
|
|
|
|
MAX_PROG_SIZE=${MAX_PROG_SIZE:-$(echo "${VPIDS}" | grep upload.maximum_size | cut -d= -f2)}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
find_device_vid_pid() {
|
|
|
|
find_device_vid_pid() {
|
|
|
|
VPIDS=$(${ARDUINO_BUILDER} \
|
|
|
|
VPIDS=$(${ARDUINO_BUILDER} \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
|
-hardware "${ARDUINO_PATH}/hardware" \
|
|
|
@ -47,7 +58,9 @@ find_device_port() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reset_device_cmd() {
|
|
|
|
reset_device_cmd() {
|
|
|
|
stty -F ${DEVICE_PORT} 1200 hupcl
|
|
|
|
if [ -z ${NO_RESET} ]; then
|
|
|
|
|
|
|
|
stty -F ${DEVICE_PORT} 1200 hupcl
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
find_bootloader_ports() {
|
|
|
|
find_bootloader_ports() {
|
|
|
|