6b6ea44802
* fbt: added separate script for Windows env setup; moved flash targets from firmware.scons to SConstruct; added Blackmagic support with automatic probe port resolution; added apps.c rebuild on any manifest.fam changes; fixed simultaneous flash & debug ops * fbt: added networked BlackmagicResolver mode; added `get_blackmagic` target for IDE integration * fbt: cleanup * fbt: docs update; fixed blackmagic lookup on certain usb hubs * fbt: removed explicit python serial port import * fbt: cleanup * fbt: raising exception on multiple serial blackmagic probes
18 lines
412 B
Bash
Executable File
18 lines
412 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
SCRIPTDIR="$( dirname -- "$0"; )";
|
|
SCONS_EP=${SCRIPTDIR}/lib/scons/scripts/scons.py
|
|
|
|
if [[ -d .git ]]; then
|
|
git submodule update --init
|
|
else # Not in a git repo
|
|
echo Not in a git repo, please clone with git clone --recursive
|
|
# Return error code 1 to indicate failure
|
|
exit 1
|
|
fi
|
|
|
|
SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built"
|
|
python3 ${SCONS_EP} ${SCONS_DEFAULT_FLAGS} "$@"
|