summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAdam Romanek <romanek.adam@gmail.com>2021-07-08 14:34:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-11 23:01:25 +0100
commit5dce2f3da20a14c0eb5229696561b0c5f6fce54c (patch)
treee4b2c5260dd7cd6550518144c6af23d64fe718a7 /bitbake
parent9b4c0035d456b6b3662579fd89f26957677aee02 (diff)
downloadpoky-5dce2f3da20a14c0eb5229696561b0c5f6fce54c.tar.gz
bitbake: fetch2/s3: allow to use credentials from environment variables
Previously access to AWS S3 was expected to be preconfigured and credentials to be stored in ~/.aws/credentials. With this change one can use Bitbake s3 fetcher without AWS credentials stored permanently as above, just with them exported as the following environment variables: - AWS_ACCESS_KEY_ID, - AWS_SECRET_ACCESS_KEY. - AWS_DEFAULT_REGION. (Bitbake rev: 01825699044c42e87e485e6c64cc1dd9b6f87f48) Signed-off-by: Adam Romanek <romanek.adam@gmail.com> Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index c8e91262a9..0d49e1da37 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -834,7 +834,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
834 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 834 'SSH_AUTH_SOCK', 'SSH_AGENT_PID',
835 'SOCKS5_USER', 'SOCKS5_PASSWD', 835 'SOCKS5_USER', 'SOCKS5_PASSWD',
836 'DBUS_SESSION_BUS_ADDRESS', 836 'DBUS_SESSION_BUS_ADDRESS',
837 'P4CONFIG'] 837 'P4CONFIG',
838 'AWS_ACCESS_KEY_ID',
839 'AWS_SECRET_ACCESS_KEY',
840 'AWS_DEFAULT_REGION']
838 841
839 if not cleanup: 842 if not cleanup:
840 cleanup = [] 843 cleanup = []