From beb34da36d1717aafe212b6bef4b8e8ef2c3d599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 6 Feb 2021 11:14:31 +0100 Subject: [PATCH] build: automatically checkout pico-sdk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 31d9607..a88b320 100755 --- a/build.sh +++ b/build.sh @@ -1,14 +1,20 @@ #!/bin/sh BUILD_DIR=build +PICO_SDK_DIR=pico-sdk main () { local cur_dir=$PWD + if [ ! -d "$PICO_SDK_DIR/.git" ]; then + git submodule update --init --recursive + fi + mkdir -p $BUILD_DIR cd $BUILD_DIR - cmake .. + cmake ../ make + cd $cur_dir }