From c0e2d44f196cba96bcfbb970b4a1e17673abe62d Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Sun, 31 Dec 2023 22:01:18 +0100 Subject: [PATCH] =?UTF-8?q?build=5Fw=5Fline=5Fflow=5Fctrl.sh=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_w_line_flow_ctrl.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build_w_line_flow_ctrl.sh diff --git a/build_w_line_flow_ctrl.sh b/build_w_line_flow_ctrl.sh new file mode 100644 index 0000000..a7b1a0b --- /dev/null +++ b/build_w_line_flow_ctrl.sh @@ -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 $@