Skip to content

Commit

Permalink
build: automatically checkout pico-sdk
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
  • Loading branch information
Noltari committed Feb 6, 2021
1 parent 3f9c9fa commit beb34da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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
}

Expand Down

0 comments on commit beb34da

Please sign in to comment.