nrf5/bluetooth: Updating Bluetooth LE stack download script.
This commit is contained in:
parent
f6f8097f77
commit
7501ecec8e
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
function download_s110_nrf51
|
function download_s110_nrf51
|
||||||
{
|
{
|
||||||
echo "### Downloading nrf51_s110 ###"
|
echo ""
|
||||||
|
echo "##############################"
|
||||||
|
echo "### Downloading s110_nrf51 ###"
|
||||||
|
echo "##############################"
|
||||||
|
echo ""
|
||||||
|
|
||||||
wget https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/nRF51_SDK_10.0.0_dc26b5e.zip
|
wget https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/nRF51_SDK_10.0.0_dc26b5e.zip
|
||||||
unzip nRF51_SDK_10.0.0_dc26b5e.zip components/softdevice/s110/*
|
unzip nRF51_SDK_10.0.0_dc26b5e.zip components/softdevice/s110/*
|
||||||
mv components s110_nrf51
|
mv components s110_nrf51
|
||||||
|
@ -11,15 +16,18 @@ function download_s110_nrf51
|
||||||
|
|
||||||
function download_s132_nrf52
|
function download_s132_nrf52
|
||||||
{
|
{
|
||||||
echo "### Downloading nrf52_s132 ###"
|
echo ""
|
||||||
|
echo "##############################"
|
||||||
|
echo "### Downloading s132_nrf52 ###"
|
||||||
|
echo "##############################"
|
||||||
|
echo ""
|
||||||
|
|
||||||
wget https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v12.x.x/nRF5_SDK_12.1.0_0d23e2a.zip
|
wget https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v12.x.x/nRF5_SDK_12.1.0_0d23e2a.zip
|
||||||
unzip nRF5_SDK_12.1.0_0d23e2a.zip components/softdevice/s132/*
|
unzip nRF5_SDK_12.1.0_0d23e2a.zip components/softdevice/s132/*
|
||||||
mv components s132_nrf52
|
mv components s132_nrf52
|
||||||
rm nRF5_SDK_12.1.0_0d23e2a.zip
|
rm nRF5_SDK_12.1.0_0d23e2a.zip
|
||||||
}
|
}
|
||||||
|
|
||||||
cd bluetooth
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "No Bluetooth LE stack defined, downloading all."
|
echo "No Bluetooth LE stack defined, downloading all."
|
||||||
download_s110_nrf51
|
download_s110_nrf51
|
||||||
|
@ -33,6 +41,4 @@ else
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue