|
|
@ -131,9 +131,8 @@ firmware_size () {
|
|
|
|
|
|
|
|
|
|
|
|
find_sketch () {
|
|
|
|
find_sketch () {
|
|
|
|
SKETCH="${SKETCH:-${DEFAULT_SKETCH}}"
|
|
|
|
SKETCH="${SKETCH:-${DEFAULT_SKETCH}}"
|
|
|
|
LIBRARY="${LIBRARY:-${SKETCH}}"
|
|
|
|
if [ -z "${SKETCH}" ] || [ -z "${ROOT}" ] || [ -z "${SOURCEDIR}" ]; then
|
|
|
|
if [ -z "${SKETCH}" ] || [ -z "${LIBRARY}" ] || [ -z "${ROOT}" ] || [ -z "${SOURCEDIR}" ]; then
|
|
|
|
echo "SKETCH, SOURCEDIR, and ROOT need to be set before including this file!" >&2
|
|
|
|
echo "SKETCH, LIBRARY, SOURCEDIR, and ROOT need to be set before including this file!" >&2
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -141,7 +140,6 @@ find_sketch () {
|
|
|
|
SKETCH_FILE=$(basename "$SKETCH")
|
|
|
|
SKETCH_FILE=$(basename "$SKETCH")
|
|
|
|
|
|
|
|
|
|
|
|
for path in "${SKETCH_DIR}" \
|
|
|
|
for path in "${SKETCH_DIR}" \
|
|
|
|
"examples/${LIBRARY}" \
|
|
|
|
|
|
|
|
"src" \
|
|
|
|
"src" \
|
|
|
|
"."; do
|
|
|
|
"."; do
|
|
|
|
if [ -f "${path}/${SKETCH_FILE}.ino" ]; then
|
|
|
|
if [ -f "${path}/${SKETCH_FILE}.ino" ]; then
|
|
|
@ -473,7 +471,6 @@ build_all () {
|
|
|
|
|
|
|
|
|
|
|
|
for plugin in ${plugins}; do
|
|
|
|
for plugin in ${plugins}; do
|
|
|
|
export SKETCH="${plugin}"
|
|
|
|
export SKETCH="${plugin}"
|
|
|
|
export LIBRARY="${plugin}"
|
|
|
|
|
|
|
|
$0 "${plugin}" build
|
|
|
|
$0 "${plugin}" build
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -484,7 +481,6 @@ compile_all () {
|
|
|
|
|
|
|
|
|
|
|
|
for plugin in ${plugins}; do
|
|
|
|
for plugin in ${plugins}; do
|
|
|
|
export SKETCH="${plugin}"
|
|
|
|
export SKETCH="${plugin}"
|
|
|
|
export LIBRARY="${plugin}"
|
|
|
|
|
|
|
|
$0 "${plugin}" compile
|
|
|
|
$0 "${plugin}" compile
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -723,10 +719,7 @@ for i in $(seq 1 $#); do
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
LIBRARY="${SKETCH}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export SKETCH
|
|
|
|
export SKETCH
|
|
|
|
export LIBRARY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for cmd in ${cmds}; do
|
|
|
|
for cmd in ${cmds}; do
|
|
|
|
${cmd}
|
|
|
|
${cmd}
|
|
|
|