pico-uart-bridge/build_w_line_flow_ctrl.sh

18 lines
346 B
Bash
Raw Permalink Normal View History

2023-12-31 21:01:18 +00:00
#!/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 $@