From 50b1e72dc2475fb971afa942a1b0581e8c4f2d2c Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Sat, 23 Mar 2019 14:12:49 +0100 Subject: Add option to disable sstate-mirror in release builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4149a9a2eee0d96acd4900f4daf250a6dde71701 Signed-off-by: Jan-Simon Möller --- jjb/common/include-agl-auto-conf.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'jjb/common/include-agl-auto-conf.sh') diff --git a/jjb/common/include-agl-auto-conf.sh b/jjb/common/include-agl-auto-conf.sh index 8811d3fd..e4744df7 100644 --- a/jjb/common/include-agl-auto-conf.sh +++ b/jjb/common/include-agl-auto-conf.sh @@ -11,10 +11,6 @@ if test x"" = x"${GERRIT_BRANCH}"; then 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 = "\ git://.*/.* ${DLHOST}/AGL/mirror/ \n \ @@ -23,6 +19,11 @@ http://.*/.* ${DLHOST}/AGL/mirror/ \n \ https://.*/.* ${DLHOST}/AGL/mirror/ \n \ " +EOF + " +if test x"YES" != x"${DISABLE_SSTATE_MIRROR}" ; then + +cat << EOF >> conf/auto.conf SSTATE_MIRRORS = " \ file://.* ${DLHOST}/sstate-mirror/${DISTROBRANCH}/\${DEFAULTTUNE}/PATH \n \ " @@ -33,3 +34,5 @@ SSTATE_MIRRORS = " \ IMAGE_FSTYPES_remove = "ext3" SSTATE_DIR = "\${TOPDIR}/sstate-cache/\${MACHINE}/" EOF + +fi \ No newline at end of file -- cgit 1.2.3-korg