forked from NordicSemiconductor/Nordic-Thingy52-FW
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_sdk.sh
More file actions
21 lines (18 loc) · 772 Bytes
/
setup_sdk.sh
File metadata and controls
21 lines (18 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
rm -rf sdk_components
ln -s external/sdk13/components sdk_components
rm -rf external/nano-pb
ln -s ../external/sdk13/external/nano-pb external/nano-pb
rm -rf external/segger_rtt
ln -s ../external/sdk13/external/segger_rtt external/segger_rtt
if ! [ -x "$(command -v git)" ]; then
echo 'git is not installed. Please install and append to PATH' >&2
exit
fi
if [ ! -f external/sdk13/external/micro-ecc/micro-ecc/uECC.c ]; then
echo "micro-ecc not found! Let's pull it from HEAD."
git clone https://github.com/kmackay/micro-ecc.git external/sdk13/external/micro-ecc/micro-ecc
fi
# Try builds with supported toolchains
( cd external/sdk13/external/micro-ecc/nrf52_armgcc/armgcc && make )
( cd external/sdk13/external/micro-ecc/nrf52_keil/armgcc && make )