[bootlin/training-materials updates] master: yocto-recipe-basics: fix git fetcher doc (cf510f83)

Alexandre Belloni alexandre.belloni at bootlin.com
Tue Oct 4 23:25:25 CEST 2022


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/cf510f83c264e36672688154417bf025de19ea54

>---------------------------------------------------------------

commit cf510f83c264e36672688154417bf025de19ea54
Author: Alexandre Belloni <alexandre.belloni at bootlin.com>
Date:   Tue Oct 4 23:24:31 2022 +0200

    yocto-recipe-basics: fix git fetcher doc
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni at bootlin.com>


>---------------------------------------------------------------

cf510f83c264e36672688154417bf025de19ea54
 slides/yocto-recipe-basics/yocto-recipe-basics.tex | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics.tex b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
index cb1be819..5004f5f5 100644
--- a/slides/yocto-recipe-basics/yocto-recipe-basics.tex
+++ b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
@@ -128,10 +128,9 @@
       \begin{itemize}
         \item \code{git://<url>;protocol=<protocol>;branch=<branch>}
         \item When using git, it is necessary to also define
-          \code{SRCREV}. If \code{SRCREV} is a hash or a tag not
-          present in master, the branch parameter is mandatory. When
-          the tag is not in any branch, it is possible to use
-          \code{nobranch=1}
+          \code{SRCREV}. It has to be a commit hash and not a tag to
+          be able to do offline builds. The \code{branch} parameter is
+          mandatory unless \code{nobranch=1} is used.
       \end{itemize}
     \item The \code{http}, \code{https} and \code{ftp} schemes:
       \begin{itemize}
@@ -251,7 +250,7 @@ LIC_FILES_CHKSUM =  \
     \end{description}
     \item \code{DEPENDS = "recipe-b"}: the local \code{do_prepare_recipe_sysroot}
       task depends on the \code{do_populate_sysroot} task of recipe-b.
-    \item \code{RDEPENDS:${PN} = "recipe-b"}: the local
+    \item \code{RDEPENDS:${PN} = "package-b"}: the local
       \code{do_build} task depends on the
       \code{do_package_write_<archive-format>} task of recipe b.
   \end{itemize}
@@ -450,7 +449,7 @@ PRIORITY = "optional"
 SECTION = "examples"
 LICENSE = "GPL-2.0-or-later"
 
-SRC_URI = "git://git.example.com/hello;protocol=https"
+SRC_URI = "git://git.example.com/hello;protocol=https;branch=master"
 SRCREV = "2d47b4eb66e705458a17622c2e09367300a7b118"
 S = "${WORKDIR}/git"
 LIC_FILES_CHKSUM = \




More information about the training-materials-updates mailing list