Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mail.openembedded.org (Postfix) with ESMTP id 09D3873193 for ; Wed, 25 May 2016 19:53:35 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8A3D321528; Wed, 25 May 2016 15:48:31 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 25 May 2016 15:48:31 -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=ctMCj ZRDgaAXGcRqsd8bCH8ezXw=; b=R6vFIdJvKbujdOU7oGZXGDnooREMmrH7f66hL cwdA+U94bQfZGFUKCQ3cHspMc7sA8ceDf4jHaIMS3boyupgJCT5TnAWt4cVfQxHG tl6dPvmjgs+OdaKh2KUZmzppY58uRcdfg8sEKkxMLogCpEZGuFZYDaKky9PEqhtY MZzIRU= 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=ctMC jZRDgaAXGcRqsd8bCH8ezXw=; b=m8l8Fv5Ud8tlcXmJBAIbP5gY0lwCfhQuRh1N Ht7woA8eNhaKlSPbynpunPypjHi37qE3HvkV4ycvj87NshLG4rqgvbyaP6FQmRCj hyDXRU3uGy42yYs9qcNw+858wZukqBpteT/av1rL2DidQ8TslDpxx4f5L1y7z6jp CNWcOpI= X-Sasl-enc: wQ3rjjVpbsJYCLu2vL4fSpoDxi/XVOaS0dr3Ru2RX0N9 1464205711 Received: from kaim-eeyore.kodakalaris.net (clr-vpn01.kodakalaris.com [198.140.222.129]) by mail.messagingengine.com (Postfix) with ESMTPA id 41151F2A06; Wed, 25 May 2016 15:48:31 -0400 (EDT) From: Andrew Bradford To: bitbake-devel@lists.openembedded.org Date: Wed, 25 May 2016 15:48:24 -0400 Message-Id: <1464205704-26377-3-git-send-email-andrew@bradfordembedded.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1464205704-26377-1-git-send-email-andrew@bradfordembedded.com> References: <1464205704-26377-1-git-send-email-andrew@bradfordembedded.com> Cc: Andrew Bradford Subject: [PATCH 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: Wed, 25 May 2016 19:53:35 -0000 From: Andrew Bradford Signed-off-by: Andrew Bradford --- .../bitbake-user-manual-fetching.xml | 72 +++++++++++++++++++++- .../bitbake-user-manual-ref-variables.xml | 11 +++- 2 files changed, 79 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..0d8bec0 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml @@ -716,6 +716,75 @@ +
+ 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 is usually 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, + you can specify the P4PORT value, + which is the server's URL and port number. If you wish to + specify a username and password directly in your recipe, do so + 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 are a few behaviours worth mentioning: + + SRC_URI + should always end in /... to specify + fetching of all directories and files below the given depot + path. Fetching of an individual file does not currently + work correctly. + S should always be set + to "${WORKDIR}/p4" in your recipe. + + +
+
Other Fetchers @@ -726,9 +795,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