Update SDK definition - add flounder
[src/xds/xds-server.git] / scripts / sdks / agl / _build-sdks-json.sh
index 82cb2f3..050031e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 ###########################################################################
-# Copyright 2017 IoT.bzh
+# Copyright 2017-2018 IoT.bzh
 #
 # author: Sebastien Douheret <sebastien@iot.bzh>
 #
 ###########################################################################
 
 SDK_AGL_BASEURL="https://download.automotivelinux.org/AGL"
-SDK_AGL_IOTBZH_BASEURL="http://iot.bzh/download/public/XDS/sdk"
+SDK_AGL_IOTBZH_BASEURL="http://iot.bzh/download/public/XDS"
 
 # Define urls where SDKs can be downloaded
 DOWNLOADABLE_URLS="
     ${SDK_AGL_BASEURL}/snapshots/master/latest/*/deploy/sdk
 
-    ${SDK_AGL_BASEURL}/release/dab/3.99.3/m3ulcb-nogfx/deploy/sdk
     ${SDK_AGL_BASEURL}/release/dab/4.0.2/*/deploy/sdk
 
-    ${SDK_AGL_BASEURL}/release/eel/4.99.4/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/eel/5.0.0/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/eel/5.0.1/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/eel/5.0.2/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/eel/5.0.3/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/eel/5.1.0/*/deploy/sdk
     ${SDK_AGL_BASEURL}/release/eel/latest/*/deploy/sdk
 
-    ${SDK_AGL_IOTBZH_BASEURL}
-"
+    ${SDK_AGL_BASEURL}/release/flounder/5.99.6/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/flounder/latest/*/deploy/sdk
+
+    ${SDK_AGL_IOTBZH_BASEURL}/images/dab-m3ulcb/*/sdk
+    ${SDK_AGL_IOTBZH_BASEURL}/images/dab-raspi/*/sdk
 
+    ${SDK_AGL_IOTBZH_BASEURL}/images/eel-intel-corei7-64/*/sdk
+    ${SDK_AGL_IOTBZH_BASEURL}/images/eel-m3ulcb/*/sdk
+
+    ${SDK_AGL_IOTBZH_BASEURL}/images/master-m3ulcb/*/sdk
+    ${SDK_AGL_IOTBZH_BASEURL}/images/master-qemux86-64/*/sdk
+"
 ###
 
 
@@ -82,6 +94,12 @@ for url in $(echo $urls); do
             name=$(echo "AGL-$(echo ${endUrl} | cut -d'/' -f2,3,4,5)" | sed s:/:-:g)
         fi
 
+        # Distringuish qemux86-64 and corei7-64
+        if [[ "$name" == *"qemux86-64"* && "$arch" == "corei7-64" ]]; then
+            arch="qemux86-64"
+        fi
+
+
         [ "${profile}" = "" ] && { echo " ERROR: profile not set" continue; }
         [ "${version}" = "" ] && { echo " ERROR: version not set" continue; }
         [ "${arch}" = "" ] && { echo " ERROR: arch not set" continue; }