4 iotivity_download_uri=${2}
6 if [ "$#" -ne 2 ]; then
7 echo 'Two arguments needed. First one is needed for where to download iotivity and second represents iotivity git download uri'
13 cd ${iotivity_base_dir}
15 iotivity_dir_name='iotivity'
17 rm -rf ${iotivity_dir_name}
19 git clone ${iotivity_download_uri}
21 echo 'Unable to download iotivity'
25 cd ${iotivity_dir_name}
27 cbor_version='v0.4.1' #setting static verion value here. Need to parse dyanmically from sconscript in future
28 git clone https://github.com/01org/tinycbor.git extlibs/tinycbor/tinycbor -b ${cbor_version}
30 echo 'Unable to download tinycbor'
34 mbedtls_version='mbedtls-2.4.0' #setting static verion value here. Need to parse dyanmically from sconscript in future
35 git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b ${mbedtls_version}
37 echo 'Unable to download mbedtls'