mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2024-12-28 18:26:05 +00:00
beb34da36d
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
22 lines
246 B
Bash
Executable file
22 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 $@
|