forked from hd-zero/hdzero-goggle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·36 lines (29 loc) · 1.27 KB
/
setup.sh
File metadata and controls
executable file
·36 lines (29 loc) · 1.27 KB
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
#!/bin/bash
set -e
TOOLCHAIN_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--stable-2018.02-2.tar.bz2"
if [ ! -d toolchain ]; then
echo "Extracting toolchain..."
mkdir toolchain
wget -qO- "$TOOLCHAIN_URL" | tar xj --strip-components=1 -C toolchain
fi
rm -rf build_*
echo
echo "**********************************************"
echo "Preparing HDZero Goggle Build Environment....."
echo "**********************************************"
cmake . -DHDZ_GOGGLE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=toolchain/share/buildroot/toolchainfile.cmake -Bbuild_goggle
echo
echo "**********************************************"
echo "Preparing HDZero BoxPro Build Environment....."
echo "**********************************************"
cmake . -DHDZ_BOXPRO=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=toolchain/share/buildroot/toolchainfile.cmake -Bbuild_boxpro
echo
echo "****************************************"
echo "*** HDZero Goggle Build Instructions ***"
echo "****************************************"
echo "cd build_goggle; make -j"
echo
echo "****************************************"
echo "*** HDZero BoxPro Build Instructions ***"
echo "****************************************"
echo "cd build_boxpro; make -j"