-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_libs.bash
More file actions
executable file
·39 lines (32 loc) · 1.07 KB
/
get_libs.bash
File metadata and controls
executable file
·39 lines (32 loc) · 1.07 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
37
38
39
#! /bin/bash
set -e
SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname -- "${SCRIPT_PATH}")"
cd "${SCRIPT_DIR}"
mkdir -p ./lib
cd ./lib
# echo "Downloading LR11XX Driver"
# git clone https://github.com/Lora-net/SWDR001
# cd SWDR001
# git checkout f99fe41538e351c4c0d1975a4138532fe7869d65
# echo "Building LR11XX Driver"
# cmake -S . -B ./build
# cmake --build ./build --config Release -j $(nrpoc)
# echo "LR11XX driver built"
cd "${SCRIPT_DIR}/lib"
echo "Downloading RadioLib (With Customizations specfic to CPSS)"
git clone https://github.com/cpspacesystems/lora-comms.git -b radioLib RadioLib
echo "building lr1121_radiolib_bridge and RadioLib"
cd ./lr1121_radiolib_bridge
cmake -S . -B ./build
cmake --build ./build -j $(nproc)
cd "${SCRIPT_DIR}/lib"
echo "Downloading sx1302 driver"
git clone https://github.com/Lora-net/sx1302_hal
cd sx1302_hal
git checkout 4b42025d1751e04632c0b04160e0d29dbbb222a5
echo "Building SX1302 Driver"
make clean all -j $(nproc)
echo "SX1302 driver built"
echo ""
echo "all tasks finished, all source libraries installed and built."