pico-uart-bridge/build.sh
Álvaro Fernández Rojas beb34da36d build: automatically checkout pico-sdk
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-06 11:27:34 +01:00

21 lines
246 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 update --init --recursive
fi
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake ../
make
cd $cur_dir
}
main $@