summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-01-17 14:08:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-17 21:54:00 +0000
commit776fc5fc4644ea3d8677ce409ed9c802f1c03314 (patch)
treeb9587c8a9e49e83d3997bcb5ee57d899319c0b63 /bitbake
parent88764cc5c8ea7f690e31639004002552b555a8d3 (diff)
downloadpoky-776fc5fc4644ea3d8677ce409ed9c802f1c03314.tar.gz
bitbake: doc: bitbake-user-manual: specify the URL to be used with SSH over git is different from `git clone`'s
The URL expected by git fetcher when the SSH protocol is used differs from the one given by Git servers to be used with the `git clone` command. Add a note making this specificity known to users. Cc: Quentin Schulz <foss+yocto@0leil.net> (Bitbake rev: 81c09d434aed13fcfc4ba426ae6a0b849447eb5f) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
index 0fc2d5e699..77384cfdc7 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst
@@ -396,6 +396,19 @@ This fetcher supports the following parameters:
396 protocol is "file". You can also use "http", "https", "ssh" and 396 protocol is "file". You can also use "http", "https", "ssh" and
397 "rsync". 397 "rsync".
398 398
399 .. note::
400
401 When ``protocol`` is "ssh", the URL expected in :term:`SRC_URI` differs
402 from the one that is typically passed to ``git clone`` command and provided
403 by the Git server to fetch from. For example, the URL returned by GitLab
404 server for ``mesa`` when cloning over SSH is
405 ``git@gitlab.freedesktop.org:mesa/mesa.git``, however the expected URL in
406 :term:`SRC_URI` is the following::
407
408 SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;protocol=ssh;..."
409
410 Note the ``:`` character changed for a ``/`` before the path to the project.
411
399- *"nocheckout":* Tells the fetcher to not checkout source code when 412- *"nocheckout":* Tells the fetcher to not checkout source code when
400 unpacking when set to "1". Set this option for the URL where there is 413 unpacking when set to "1". Set this option for the URL where there is
401 a custom routine to checkout code. The default is "0". 414 a custom routine to checkout code. The default is "0".
@@ -446,6 +459,7 @@ Here are some example URLs::
446 459
447 SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1" 460 SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1"
448 SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http" 461 SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http"
462 SRC_URI = "git://git@gitlab.freedesktop.org/mesa/mesa.git;protocol=ssh;..."
449 463
450.. note:: 464.. note::
451 465