When using the sstate cache in a CI system, the cache is likely accessed
via the SSTATE_MIRRORS env var (in contrast to local builds where it is
accessed via SSTATE_DIR). By that, we also need to automatically forward
this variable.
Previously, users had to manually add this variable to the env section
of a kas file. This led to some confusion, as local accesses to the
cache worked, but not when running in a CI.
Signed-off-by: Felix Moessbauer <
felix.mo...@siemens.com>
---
docs/command-line.rst | 1 +
kas/libkas.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/command-line.rst b/docs/command-line.rst
index 39ee2ff..25be620 100644
--- a/docs/command-line.rst
+++ b/docs/command-line.rst
@@ -66,6 +66,7 @@ Environment variables
+--------------------------+--------------------------------------------------+
| ``DL_DIR`` | Environment variables that are transferred to |
| ``SSTATE_DIR`` | the bitbake environment. |
+| ``SSTATE_MIRRORS`` | |
| ``TMPDIR`` | |
+--------------------------+--------------------------------------------------+
| ``http_proxy`` | These variables define the proxy configuration |
diff --git a/kas/libkas.py b/kas/libkas.py
index 613b38a..24d55ff 100644
--- a/kas/libkas.py
+++ b/kas/libkas.py
@@ -278,7 +278,7 @@ def get_build_environ(build_system):
conf_env = get_context().config.get_environment()
- env_vars = ['SSTATE_DIR', 'DL_DIR', 'TMPDIR']
+ env_vars = ['SSTATE_DIR', 'SSTATE_MIRRORS', 'DL_DIR', 'TMPDIR']
env_vars.extend(conf_env)
env.update(conf_env)
--
2.39.2