You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
554 B
26 lines
554 B
3 years ago
|
#!/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
|
||
|
mkdir builddir && cd builddir
|
||
|
cmake ..
|
||
|
make -j4
|
||
|
cd ../..
|
||
|
fi
|
||
|
|
||
|
if [ ! -d LimeGPS ]; then
|
||
|
git clone https://github.com/osqzss/LimeGPS.git
|
||
|
cd LimeGPS
|
||
|
sed -i 's/LimeSuite/LimeSuite -I..\/LimeSuite\/src -L..\/LimeSuite\/builddir\/src/' makefile
|
||
|
make
|
||
|
cd ..
|
||
|
fi
|
||
|
|