diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-08-10 16:47:16 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-08-10 17:19:14 +0200 |
commit | a6dc862082e0ff296517e40ee904d98c2e96b239 (patch) | |
tree | 4ffafb6d2a6576c45a7eac088e31422b2463dfcb /jjb/common/include-apps-fetch-install-sdk.sh | |
parent | a7616c262ff994ed1a0930736ab5b8a301c1fd48 (diff) |
Update ci loop for apps to include master and dab release
Change-Id: I7434475bc75cd27c75b63e0a8e28e3525e12c684
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-apps-fetch-install-sdk.sh')
-rw-r--r-- | jjb/common/include-apps-fetch-install-sdk.sh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/jjb/common/include-apps-fetch-install-sdk.sh b/jjb/common/include-apps-fetch-install-sdk.sh index b099d9a5..0dfbb474 100644 --- a/jjb/common/include-apps-fetch-install-sdk.sh +++ b/jjb/common/include-apps-fetch-install-sdk.sh @@ -11,8 +11,23 @@ SDKHOSTDIR="~/agl-sdk" ## apps-fetch-install-sdk.sh ################################################################################ -# should probably switch to release ... or multiple (release/snapshot) fwiw +# 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 + +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 +if test x"dab" = x"$AGLBRANCH" ; then + SDKBASEURL="https://download.automotivelinux.org/AGL/release/dab/latest/${TARGETSDKMACHINE}/deploy/sdk/" +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 @@ -31,7 +46,6 @@ chmod a+x ${TARGETSDKNAME} if test x"" = x"$(eval ls ${SDKHOSTDIR}/environment-setup* | grep "agl-" | grep ${TARGETSDKARCH} 2>/dev/null)" ; then bash ${TARGETSDKNAME} -d ${SDKHOSTDIR}/ -y fi -#set -x # find out the env setup script export TARGETSDKENVSCRIPT="$(eval ls ${SDKHOSTDIR}/environment-setup* | grep "agl-" | grep ${TARGETSDKARCH} 2>/dev/null)" @@ -44,6 +58,4 @@ fi echo "About to source ${TARGETSDKENVSCRIPT}" source "${TARGETSDKENVSCRIPT}" -#set | grep -i sysroots || true -#set +x |