Files
dragonpilot/selfdrive/debug/profiling/clpeak/build.sh

23 lines
457 B
Bash
Raw Normal View History

2021-01-13 19:41:56 -08:00
#!/usr/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
if [ ! -d "$DIR/clpeak" ]; then
git clone https://github.com/krrishnarraj/clpeak.git
2021-01-13 20:13:14 -08:00
cd clpeak
git fetch
git checkout ec2d3e70e1abc7738b81f9277c7af79d89b2133b
git reset --hard origin/master
git submodule update --init --recursive --remote
git apply ../run_continuously.patch
2021-01-13 19:41:56 -08:00
fi
cd clpeak
2021-01-13 20:13:14 -08:00
mkdir build || true
2021-01-13 19:41:56 -08:00
cd build
cmake ..
cmake --build .