libkas: Pass git proxy related environment variables
This allows to define GIT_PROXY_COMMAND="oe-git-proxy" outside of kas and pass this to the build. Now we can pull from native git repos when there is only a http proxy available. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
a4c424c253
commit
100c7e047f
@ -93,6 +93,9 @@ Environment variables
|
|||||||
| ``https_proxy`` | configuration file. |
|
| ``https_proxy`` | configuration file. |
|
||||||
| ``no_proxy`` | |
|
| ``no_proxy`` | |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
|
| ``GIT_PROXY_COMMAND`` | Set proxy for native git fetches. ``NO_PROXY`` is |
|
||||||
|
| ``NO_PROXY`` | evaluated by OpenEmbedded's oe-git-proxy script. |
|
||||||
|
+-----------------------+-----------------------------------------------------+
|
||||||
| ``SHELL`` | The shell to start when using the `shell` plugin. |
|
| ``SHELL`` | The shell to start when using the `shell` plugin. |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
| ``TERM`` | The terminal options used in the `shell` plugin. |
|
| ``TERM`` | The terminal options used in the `shell` plugin. |
|
||||||
|
@ -306,7 +306,8 @@ def get_build_environ(config, build_dir):
|
|||||||
env.update({'BB_ENV_EXTRAWHITE': extra_white})
|
env.update({'BB_ENV_EXTRAWHITE': extra_white})
|
||||||
|
|
||||||
env_vars.extend(['SSH_AGENT_PID', 'SSH_AUTH_SOCK',
|
env_vars.extend(['SSH_AGENT_PID', 'SSH_AUTH_SOCK',
|
||||||
'SHELL', 'TERM'])
|
'SHELL', 'TERM',
|
||||||
|
'GIT_PROXY_COMMAND', 'NO_PROXY'])
|
||||||
|
|
||||||
for env_var in env_vars:
|
for env_var in env_vars:
|
||||||
if env_var in os.environ:
|
if env_var in os.environ:
|
||||||
|
Loading…
Reference in New Issue
Block a user