-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_raspi.sh
executable file
·47 lines (37 loc) · 1.62 KB
/
build_raspi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
BUILD_TYPE=Debug
set -e
cd ../../ && export RUSTYDUCKS_WS_PATH=$(pwd) && echo $RUSTYDUCKS_WS_PATH
export RUSTYDUCKS_WS_PATH_ARM=$RUSTYDUCKS_WS_PATH/armlinux
cd $RUSTYDUCKS_WS_PATH/src/protobuf
mkdir -p buildarm
cd buildarm && rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$RUSTYDUCKS_WS_PATH_ARM -DCMAKE_BUILD_TYPE=$BUILD_TYPE -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_WITH_ZLIB=OFF -DCMAKE_TOOLCHAIN_FILE=$RUSTYDUCKS_WS_PATH/src/coin/cmake/arm_build.cmake ../cmake/
make -j8
make install
rm $RUSTYDUCKS_WS_PATH_ARM/bin/protoc
ln -s $RUSTYDUCKS_WS_PATH/bin/protoc $RUSTYDUCKS_WS_PATH_ARM/bin/protoc
cd $RUSTYDUCKS_WS_PATH/src/ducklink_cpp
mkdir -p buildarm && cd buildarm && rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$RUSTYDUCKS_WS_PATH_ARM -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCROSSCOMPILE_ARM=ON ..
make -j8
make install
cd $RUSTYDUCKS_WS_PATH/src/geometry_tools
mkdir -p buildarm && cd buildarm && rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$RUSTYDUCKS_WS_PATH_ARM -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCROSSCOMPILE_ARM=ON ..
make -j8
make install
cd $RUSTYDUCKS_WS_PATH/src/navigation
mkdir -p buildarm && cd buildarm && rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$RUSTYDUCKS_WS_PATH_ARM -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCROSSCOMPILE_ARM=ON ..
make -j8
make install
cd $RUSTYDUCKS_WS_PATH/src/coin
mkdir -p buildarm && cd buildarm && rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$RUSTYDUCKS_WS_PATH_ARM -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCROSSCOMPILE_ARM=ON ..
make -j8
#make install
ssh dalek 'sudo systemctl stop coindalek.service' || true
scp CoinDalek dalek:~/ || true
ssh crolonome 'sudo systemctl stop coincrolonome.service' || true
scp CoinCrolonome crolonome:~/ || true