pico-uart-bridge/build.sh
Álvaro Fernández Rojas a7d61bb4c8 pico-sdk: update v1.3.0
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-03 14:42:23 +02:00

23 lines
279 B
Bash
Executable file

#!/bin/sh
BUILD_DIR=build
PICO_SDK_DIR=pico-sdk
main () {
local cur_dir=$PWD
if [ ! -d "$PICO_SDK_DIR/.git" ]; then
git submodule sync --recursive
git submodule update --init --recursive
fi
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake ../
make
cd $cur_dir
}
main $@