Add build flow control script

This commit is contained in:
Carsten Schmiemann 2023-12-31 21:57:47 +01:00
parent 88122c9365
commit 249c7fb383

17
build_w_flow_ctrl.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
BASE_DIR="$(dirname ${BASH_SOURCE[0]})"
BUILD_DIR=$BASE_DIR/build
PICO_SDK_DIR=$BASE_DIR/pico-sdk
main() {
if [ ! -d "$PICO_SDK_DIR/.git" ]; then
git submodule sync --recursive
git submodule update --init --recursive
fi
cmake -DFLOW_CONTROL=true -B $BUILD_DIR -S $BASE_DIR
make -C $BUILD_DIR
}
main $@