mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2024-12-28 02:06:06 +00:00
build: automatically checkout pico-sdk
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
3f9c9fadde
commit
beb34da36d
8
build.sh
8
build.sh
|
@ -1,14 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUILD_DIR=build
|
BUILD_DIR=build
|
||||||
|
PICO_SDK_DIR=pico-sdk
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
local cur_dir=$PWD
|
local cur_dir=$PWD
|
||||||
|
|
||||||
|
if [ ! -d "$PICO_SDK_DIR/.git" ]; then
|
||||||
|
git submodule update --init --recursive
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
cmake ..
|
cmake ../
|
||||||
make
|
make
|
||||||
|
|
||||||
cd $cur_dir
|
cd $cur_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue