Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mail.openembedded.org (Postfix) with ESMTP id 955706FFA4 for ; Thu, 9 Jun 2016 13:44:43 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 00E4921722; Thu, 9 Jun 2016 09:44:43 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 09 Jun 2016 09:44:44 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= bradfordembedded.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=FFmDB lnSAy4ElE1uRZlTV8P1/sk=; b=cbzIYB2aH+gNfrbLLre2Bq7BoPQtUuliXqly9 kwbEX2ivyWZTboTbY2tqq2O9sI1PxnP04L4e2GOtCjp06Ovc9gjW233q2qccVHG2 UrqUIq21fdXk5PEVBlCst/8pvkbU4t2I1WQOrk77aqRvm5xliHvTlj06F9PQUv+I oUijco= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=FFmD BlnSAy4ElE1uRZlTV8P1/sk=; b=kWvd63kKdQNI3qqc6M2zaPSi6Div5fgUjIHH KWTuEaL1Jg06Cwr+Aih4Zr4jsW3Deo3ClDg7RsdXHbf+IQGjfIGttWcAzOTDqxaK /5xTZkexAYlRlagf1Ww9YbQN/Iq1CSAWafDg/feB2mu/FDAaNtWP8u7pxsnVVXS0 X8jdDOU= X-Sasl-enc: hMb0NnpfTdnx+4AYYljNwXH2yIru0X9+sVL1apkni5bn 1465479883 Received: from kaim-eeyore.kodakalaris.net (clr-vpn01.kodakalaris.com [198.140.222.129]) by mail.messagingengine.com (Postfix) with ESMTPA id 37A70CCDA7; Thu, 9 Jun 2016 09:44:43 -0400 (EDT) From: Andrew Bradford To: bitbake-devel@lists.openembedded.org Date: Thu, 9 Jun 2016 09:44:09 -0400 Message-Id: <1465479849-28634-3-git-send-email-andrew@bradfordembedded.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1465479849-28634-1-git-send-email-andrew@bradfordembedded.com> References: <1465479849-28634-1-git-send-email-andrew@bradfordembedded.com> Cc: Andrew Bradford Subject: [PATCH v2 2/2] doc: Document use of Perforce fetcher X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 13:44:44 -0000 From: Andrew Bradford Signed-off-by: Andrew Bradford --- .../bitbake-user-manual-fetching.xml | 68 +++++++++++++++++++++- .../bitbake-user-manual-ref-variables.xml | 11 +++- 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml b/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml index f168cfa..65acb35 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml @@ -716,6 +716,71 @@ +
+ Perforce Fetcher (<filename>p4://</filename>) + + + This fetcher submodule fetches code from the + Perforce + source control system. + The executable used is specified by + FETCHCMD_p4, which defaults + to "p4". + The fetcher's temporary working directory is set by + P4DIR, + which defaults to DL_DIR/p4. + + + + To use this fetcher, make sure your recipe has proper + SRC_URI, + SRCREV, and + PV. + The p4 executable is able to use the config file defined by your + system's P4CONFIG environment variable in + order to define the Perforce server URL and port, username, and + password if you do not wish to keep those values in a recipe + itself. If you choose not to use P4CONFIG, + or to explicitly set variables which P4CONFIG + can contain, you can specify the P4PORT value, + which is the server's URL and port number, and you can + specify a username and password directly in your recipe within + SRC_URI. + + + + Here is an example which relies on P4CONFIG + to specify the server URL and port, username, and password, and + fetches the Head Revision: + + SRC_URI = "p4://example-depot/main/source/..." + SRCREV = "${AUTOREV}" + PV = "p4-${SRCPV}" + S = "${WORKDIR}/p4" + + + + + Here is an example which specifies the server URL and port, + username, and password, and fetches a Revision based on a Label: + + P4PORT = "tcp:p4server.example.net:1666" + SRC_URI = "p4://user:passwd@example-depot/main/source/..." + SRCREV = "release-1.0" + PV = "p4-${SRCPV}" + S = "${WORKDIR}/p4" + + + + + Here is one behaviour worth mentioning: + + S should always be set + to "${WORKDIR}/p4" in your recipe. + + +
+
Other Fetchers @@ -726,9 +791,6 @@ Bazaar (bzr://) - Perforce (p4://) - - Trees using Git Annex (gitannex://) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml index 4d06ff9..f59fe85 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml @@ -52,7 +52,7 @@ M O - P + P R S @@ -1748,6 +1748,15 @@ P + P4DIR + + + The directory in which a local copy of a Perforce depot + is stored when it is fetched. + + + + PACKAGES The list of packages the recipe creates. -- 2.8.1