From 44b57216548fa96a5ecab02cfed517e0d631dc44 Mon Sep 17 00:00:00 2001 From: "Alexandru N. Onea" Date: Tue, 23 Jun 2020 12:00:51 +0300 Subject: bitbake-user-manual: update perforce fetcher docs This change updates the perforce documentation by describing two new parameters: module and remotepath. Additionally, a general statement regarding the fetcher implementation has been added, to make it clear that the fetcher does not use a perforce client for the job. Signed-off-by: Alexandru N. Onea Signed-off-by: Richard Purdie --- .../bitbake-user-manual-fetching.xml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'doc') diff --git a/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml b/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml index d1bfc2336..fe4372ade 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml @@ -736,6 +736,10 @@ The fetcher's temporary working directory is set by P4DIR, which defaults to "DL_DIR/p4". + The fetcher does not make use of a perforce client, instead it + relies on p4 files to retrieve a list of + files and p4 print to transfer the content + of those files locally. @@ -783,6 +787,62 @@ to "${WORKDIR}/p4" in your recipe. + + + By default, the fetcher strips the depot location from the + local file paths. In the above example, the content of + example-depot/main/source/ + will be placed in ${WORKDIR}/p4. + For situations where preserving parts of the remote depot paths + locally is desirable, the fetcher supports two parameters: + + + + "module": + The top-level depot location or directory to fetch. The + value of this parameter can also point to a single file + within the depot, in which case the local file path will + include the module path. + + + "remotepath": + When used with the value "keep", + the fetcher will mirror the full depot paths locally + for the specified location, even in combination with + the module parameter. + + + + + + Here is an example use of the the module + parameter: + + + SRC_URI = "p4://user:passwd@example-depot/main;module=source/..." + + + In this case, the content of the top-level directory + source/ will be fetched to + ${P4DIR}, including the directory itself. + The top-level directory will be accesible at + ${P4DIR}/source/. + + + + Here is an example use of the the remotepath + parameter: + + + SRC_URI = "p4://user:passwd@example-depot/main;module=source/...;remotepath=keep" + + + In this case, the content of the top-level directory + source/ will be fetched to + ${P4DIR}, but the complete depot paths will + be mirrored locally. The top-level directory will be accessible + at ${P4DIR}/example-depot/main/source/. +
-- cgit 1.2.3-korg