From ed424a11b464d83727b246e36eade8e4fba615c7 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Wed, 22 Sep 2021 17:29:03 +0000
Subject: [PATCH] flavours: disable public download cache

Our download cache is temporarily out of order. Before it returns,
disabling it should speed up fresh builds, as the cache is gone and is
accessed repeatedly which wastes time.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 flavours/freertos/local.conf.sample | 7 +++++--
 flavours/linux/local.conf.sample    | 7 +++++--
 flavours/zephyr/local.conf.sample   | 7 +++++--
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/flavours/freertos/local.conf.sample b/flavours/freertos/local.conf.sample
index 66f0ffdc..ec87702d 100644
--- a/flavours/freertos/local.conf.sample
+++ b/flavours/freertos/local.conf.sample
@@ -72,8 +72,11 @@ CONF_VERSION = "1"
 # Use OSTC download cache default.
 # Note that this cache is limited to system configurations that are entirely
 # re-distributable, as determined by the OSTC legal team.
-INHERIT += "own-mirrors"
-SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
+#
+# The mirror is temporarily out of service.
+#
+# INHERIT += "own-mirrors"
+# SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
 
 # If you are building on a very slow device but have relatively reliable network access
 # *and* the project you are building has a public sstate cache, you may choose to uncomment
diff --git a/flavours/linux/local.conf.sample b/flavours/linux/local.conf.sample
index a2d408b0..09bd77f7 100644
--- a/flavours/linux/local.conf.sample
+++ b/flavours/linux/local.conf.sample
@@ -253,8 +253,11 @@ CONF_VERSION = "1"
 # Use OSTC download cache default.
 # Note that this cache is limited to system configurations that are entirely
 # re-distributable, as determined by the OSTC legal team.
-INHERIT += "own-mirrors"
-SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
+#
+# The mirror is temporarily out of service.
+#
+# INHERIT += "own-mirrors"
+# SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
 
 # If you are building on a very slow device but have relatively reliable network access
 # *and* the project you are building has a public sstate cache, you may choose to uncomment
diff --git a/flavours/zephyr/local.conf.sample b/flavours/zephyr/local.conf.sample
index 7e929c56..dd2834be 100644
--- a/flavours/zephyr/local.conf.sample
+++ b/flavours/zephyr/local.conf.sample
@@ -255,8 +255,11 @@ CONF_VERSION = "1"
 # Use OSTC download cache default.
 # Note that this cache is limited to system configurations that are entirely
 # re-distributable, as determined by the OSTC legal team.
-INHERIT += "own-mirrors"
-SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
+#
+# The mirror is temporarily out of service.
+#
+# INHERIT += "own-mirrors"
+# SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
 
 # If you are building on a very slow device but have relatively reliable network access
 # *and* the project you are building has a public sstate cache, you may choose to uncomment
-- 
GitLab