SSTATE per branch + defaulttune 53/9553/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 30 May 2017 05:29:13 +0000 (07:29 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 30 May 2017 05:29:13 +0000 (07:29 +0200)
Change-Id: I5ef987616cdeb8a1d9d5c7fdc4d52ff1110bcdbd
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/.include-agl-build.sh
jjb/common/include-agl-auto-conf.sh
jjb/release-jjb-blowfish-snapshot/include-release-jjb-blowfish-snapshot-build.sh

index 8a27b8f..13ecb93 100644 (file)
@@ -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
index a097d5a..8811d3f 100644 (file)
@@ -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 
index 8a27b8f..091aaaa 100644 (file)
@@ -207,7 +207,7 @@ https://.*/.* ${DLHOST}/AGL/mirror/ \n \
 
 SSTATE_MIRRORS = "\
 file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH    \n \
-file://.* ${DLHOST}/sstate-mirror/\${MACHINE}/PATH \n \
+file://.* ${DLHOST}/sstate-mirror/${GERRIT_BRANCH}/\${DEFAULTTUNE}/PATH \n \
                  "
 
 SSTATE_DIR = "\${TOPDIR}/sstate-cache/\${MACHINE}/"