mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2025-05-14 08:12:20 +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
1 changed files with 7 additions and 1 deletions
8
build.sh
8
build.sh
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue