Skip to content

Commit

Permalink
forward SSTATE_MIRRORS environment variable
Browse files Browse the repository at this point in the history
In case cache artifacts are not found in SSTATE_DIR, the sstate logic
continues to search in the SSTATE_MIRRORS. 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.

Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Aug 31, 2023
1 parent fa6cdaa commit 3dd1722
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/command-line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion kas/libkas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3dd1722

Please sign in to comment.