build_w_line_flow_ctrl.sh hinzugefügt
This commit is contained in:
parent
14eba4cd40
commit
c0e2d44f19
1 changed files with 17 additions and 0 deletions
17
build_w_line_flow_ctrl.sh
Normal file
17
build_w_line_flow_ctrl.sh
Normal 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 -DLINE_CONTROL=true -DFLOW_CONTROL=true -B $BUILD_DIR -S $BASE_DIR
|
||||||
|
make -C $BUILD_DIR
|
||||||
|
}
|
||||||
|
|
||||||
|
main $@
|
Loading…
Reference in a new issue