summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorAndrew Bradford <andrew.bradford@kodakalaris.com>2016-06-09 09:44:08 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-16 17:37:58 +0100
commit26447a0d0bf5ceaac382a78c1dbd00807dbab706 (patch)
tree20d8f2f8a0c0d6d04586089abd1f5b0f4286c829 /bitbake/lib/bb/fetch2/__init__.py
parent9f91785cc57ee1e2aaeb8725b1c72927f16fcce6 (diff)
downloadpoky-26447a0d0bf5ceaac382a78c1dbd00807dbab706.tar.gz
bitbake: fetch2/perforce: Rework to support SRCREV and P4CONFIG
In recipes which use the perforce fetcher, enable use of SRCREV to specify any of: ${AUTOREV}, changelist number, p4date, or label. This is more in-line with how the other fetchers work for source control systems. Allow p4 to use the P4CONFIG env variable to define the server URL, username, and password if not provided in a recipe. This does change existing perforce fetcher usage by recipes and will likely need those recipes which use the perforce fetcher to be updated. No recipes in oe-core use the perforce fetcher. References [YOCTO #6303] (Bitbake rev: 6298696bb94a127cdec7964315f6891ba92cd026) Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a63498a88b..b6fcaaad55 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -803,7 +803,8 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None):
803 'GIT_SMART_HTTP', 803 'GIT_SMART_HTTP',
804 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 804 'SSH_AUTH_SOCK', 'SSH_AGENT_PID',
805 'SOCKS5_USER', 'SOCKS5_PASSWD', 805 'SOCKS5_USER', 'SOCKS5_PASSWD',
806 'DBUS_SESSION_BUS_ADDRESS'] 806 'DBUS_SESSION_BUS_ADDRESS',
807 'P4CONFIG']
807 808
808 if not cleanup: 809 if not cleanup:
809 cleanup = [] 810 cleanup = []