################################################################################
export DLHOST="http://download.automotivelinux.org/"
+if test x"" = x"${GERRIT_BRANCH}"; then
+ export DISTROBRANCH="master"
+else
+ export DISTROBRANCH="${GERRIT_BRANCH}"
+fi
+#if test ! x"" = x"${RELEASE_BRANCH}"; then
+# export DISTROBRANCH="$RELEASE_BRANCH"
+#fi
#limit parallel number of bitbake jobs and parallel jobs in make
cat << EOF >> conf/auto.conf
PREMIRRORS = "\
"
SSTATE_MIRRORS = " \
- file://.* ${DLHOST}/sstate-mirror/\${DEFAULTTUNE}/PATH \n \
+ file://.* ${DLHOST}/sstate-mirror/${DISTROBRANCH}/\${DEFAULTTUNE}/PATH \n \
"
#
#file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH \n