-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.sh
executable file
·78 lines (49 loc) · 1.65 KB
/
setup.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
echo "This script initializes your development environment"
echo "make sure that you have edited it and configured the correct paths first."
read
# ------------------- INSERT CORRET PATHS HERE --------------------------
# ---- tools ----
JLINK_COMMANDER_PATH="${HOME}/JLink_Linux_V498e_x86_64"
# ---- SDK stuff ----
INSTALL_PATH="${HOME}/nrf"
EHAL_PATH="${INSTALL_PATH}/sdk/ehal_2015_09_08"
CMSIS_PATH="${NSTALL_PATH}/sdk/arm_cmsis_4_3"
NRF51_SDK_PATH="${INSTALL_PATH}/sdk/nrf_sdk_9_0"
NRF52_SDK_PATH="${INSTALL_PATH}/sdk/nrf52_sdk_0_9_1"
# ------------------- DO NOT EDIT BELOW THIS LINE --------------------------
# -----------------------------------------------------------
echo "Creating links for tools"
cd tools
rm -f jlink
ln -s ${JLINK_COMMANDER_PATH} jlink
# -----------------------------------------------------------
# Links for SDK
cd ${EHAL_PATH}/ARM
rm -f CMSIS
ln -s ${CMSIS_PATH} CMSIS
cd ${EHAL_PATH}/ARM/Nordic/nRF51
rm -f nrf51_sdk
ln -s ${NRF51_SDK_PATH} nrf51_sdk
cd ${EHAL_PATH}/ARM/Nordic/nRF52
rm -f nrf52_sdk
ln -s ${NRF52_SDK_PATH} nrf52_sdk
cd ${INSTALL_PATH}/sdk
rm -f ehal_latest
ln -s ${EHAL_PATH} ehal_latest
rm -f nrf51_sdk_latest
ln -s ${NRF51_SDK_PATH} nrf51_sdk_latest
rm -f nrf52_sdk_latest
ln -s ${NRF52_SDK_PATH} nrf52_sdk_latest
# -----------------------------------------------------------
echo
echo
echo "Now, we are cloning the fruitymesh project in the projects directory"
echo "press any key to continue"
echo "if you want to clone it yourself, press CTRL+C"
read
mkdir ${INSTALL_PATH}/projects
cd ${INSTALL_PATH}/projects
git clone https://github.com/mwaylabs/fruitymesh.git
echo
echo "Setup finished"