2022-09-29 14:24:19 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
|
cd $DIR
|
|
|
|
|
|
|
|
|
|
if [ ! -d LimeSuite ]; then
|
|
|
|
|
git clone https://github.com/myriadrf/LimeSuite.git
|
|
|
|
|
cd LimeSuite
|
|
|
|
|
# checkout latest version which has firmware updates available
|
|
|
|
|
git checkout v20.10.0
|
2022-10-11 18:55:10 -07:00
|
|
|
git apply ../patches/limeSuite/*
|
2022-09-29 14:24:19 -07:00
|
|
|
mkdir builddir && cd builddir
|
2022-10-11 18:55:10 -07:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
2022-09-29 14:24:19 -07:00
|
|
|
make -j4
|
|
|
|
|
cd ../..
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -d LimeGPS ]; then
|
|
|
|
|
git clone https://github.com/osqzss/LimeGPS.git
|
|
|
|
|
cd LimeGPS
|
2022-10-11 18:55:10 -07:00
|
|
|
git apply ../patches/limeGPS/*
|
2022-09-29 14:24:19 -07:00
|
|
|
make
|
|
|
|
|
cd ..
|
|
|
|
|
fi
|