aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-apps-fetch-install-sdk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/common/include-apps-fetch-install-sdk.sh')
-rw-r--r--jjb/common/include-apps-fetch-install-sdk.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/jjb/common/include-apps-fetch-install-sdk.sh b/jjb/common/include-apps-fetch-install-sdk.sh
index 639ede48..0cec864d 100644
--- a/jjb/common/include-apps-fetch-install-sdk.sh
+++ b/jjb/common/include-apps-fetch-install-sdk.sh
@@ -11,18 +11,17 @@ SDKHOSTDIR="~/agl-sdk"
## apps-fetch-install-sdk.sh
################################################################################
-# default to master
-SDKBASEURL="https://download.automotivelinux.org/AGL/snapshots/master/latest/${TARGETSDKMACHINE}/deploy/sdk/"
-
# should probably switch to release ... or multiple (release/snapshot) fwiw
if test x"" = x"$AGLBRANCH"; then echo "AGLBRANCH not set, quitting" ; exit 1 ; fi
+# default to release
+SDKBASEURL="https://download.automotivelinux.org/AGL/release/${AGLBRANCH}/latest/${TARGETSDKMACHINE}/deploy/sdk/"
+
+# but master uses snapshot
if test x"master" = x"$AGLBRANCH" ; then
SDKBASEURL="https://download.automotivelinux.org/AGL/snapshots/master/latest/${TARGETSDKMACHINE}/deploy/sdk/"
fi
-if test x"chinook" = x"$AGLBRANCH" ; then
- SDKBASEURL="https://download.automotivelinux.org/AGL/release/chinook/latest/${TARGETSDKMACHINE}/deploy/sdk/"
-fi
+# special case for dab
if test x"dab" = x"$AGLBRANCH" ; then
if test x"dragonboard-410c" = x"$TARGETSDKMACHINE"; then
echo "Skipping dragonboard-410c/aarch64 .... "
@@ -32,6 +31,7 @@ if test x"dab" = x"$AGLBRANCH" ; then
fi
+
export TARGETSDKNAME=$(curl -s "$SDKBASEURL" | grep -e "crosssdk.*\.sh<" | sed -e "s#.*<a href=\"##g" -e "s#\">poky-agl.*##g")
if test x"" = x"${TARGETSDKNAME}" ; then