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 }