Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pico_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ source ~/.bashrc

# Build a couple of examples
cd "$OUTDIR/pico-examples"
mkdir build
mkdir -p build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Debug

Expand All @@ -102,11 +102,14 @@ for REPO in picoprobe picotool
do
DEST="$OUTDIR/$REPO"
REPO_URL="${GITHUB_PREFIX}${REPO}${GITHUB_SUFFIX}"
git clone $REPO_URL
if [ ! -d $DEST ]; then
git clone $REPO_URL
fi

# Build both
echo "Building $REPO"
cd $DEST
mkdir build
mkdir -p build
cd build
cmake ../
make -j$JNUM
Expand Down