From a6dc862082e0ff296517e40ee904d98c2e96b239 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 10 Aug 2017 16:47:16 +0200 Subject: Update ci loop for apps to include master and dab release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7434475bc75cd27c75b63e0a8e28e3525e12c684 Signed-off-by: Jan-Simon Möller --- jjb/common/include-apps-fetch-install-sdk.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'jjb/common/include-apps-fetch-install-sdk.sh') 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#.*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 -- cgit 1.2.3-korg