From 238771002532cd0ab24dbf10ad11942ca6094890 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Tue, 30 May 2017 07:29:13 +0200 Subject: SSTATE per branch + defaulttune MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5ef987616cdeb8a1d9d5c7fdc4d52ff1110bcdbd Signed-off-by: Jan-Simon Möller --- jjb/common/.include-agl-build.sh | 2 +- jjb/common/include-agl-auto-conf.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'jjb/common') diff --git a/jjb/common/.include-agl-build.sh b/jjb/common/.include-agl-build.sh index 8a27b8f4..13ecb938 100644 --- a/jjb/common/.include-agl-build.sh +++ b/jjb/common/.include-agl-build.sh @@ -210,7 +210,7 @@ file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH \n \ file://.* ${DLHOST}/sstate-mirror/\${MACHINE}/PATH \n \ " -SSTATE_DIR = "\${TOPDIR}/sstate-cache/\${MACHINE}/" +SSTATE_DIR = "\${TOPDIR}/sstate-cache/${GERRIT_BRANCH}/\${DEFAULTTUNE}/" EOF cat conf/auto.conf diff --git a/jjb/common/include-agl-auto-conf.sh b/jjb/common/include-agl-auto-conf.sh index a097d5ae..8811d3fd 100644 --- a/jjb/common/include-agl-auto-conf.sh +++ b/jjb/common/include-agl-auto-conf.sh @@ -6,6 +6,14 @@ ################################################################################ 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 = "\ @@ -16,7 +24,7 @@ https://.*/.* ${DLHOST}/AGL/mirror/ \n \ " 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 -- cgit 1.2.3-korg