Added 'ftp_proxy' environment variable support

Some bitbake recipes use FTP to fetch objects. This patch adds support
for the ftp_proxy variable to kas. Is now usable in the same manner as
the 'http_proxy' variable

Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
Claudius Heine 2017-10-16 10:04:24 +02:00 committed by Daniel Wagner
parent f140d7905c
commit 845d212f02
4 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,7 @@ Just run::
When you need a proxy to access the internet, add::
--build-arg http_proxy=<http_proxy> --build-arg https_proxy=<https_proxy>
--build-arg http_proxy=<http_proxy> --build-arg https_proxy=<https_proxy> --build-arg ftp_proxy=<ftp_proxy>
to the call.

View File

@ -93,6 +93,7 @@ Environment variables
+-----------------------+-----------------------------------------------------+
| ``http_proxy`` | This overwrites the proxy configuration in the |
| ``https_proxy`` | configuration file. |
| ``ftp_proxy`` | |
| ``no_proxy`` | |
+-----------------------+-----------------------------------------------------+
| ``GIT_PROXY_COMMAND`` | Set proxy for native git fetches. ``NO_PROXY`` is |

View File

@ -146,6 +146,7 @@ class Config:
proxy_config.get(var_name, ''))
for var_name in ['http_proxy',
'https_proxy',
'ftp_proxy',
'no_proxy']}
def get_repos(self):

View File

@ -161,6 +161,9 @@ CONFIGSCHEMA = {
'https_proxy': {
'type': 'string',
},
'ftp_proxy': {
'type': 'string',
},
'no_proxy': {
'type': 'string',
},