Skip to content

Commit

Permalink
slides/yocto-recipe-basics: clarify branch explanation
Browse files Browse the repository at this point in the history
- Give details about the usefulness of "branch" parameter
- Stop mentioning "nobranch=1". Corresponding to a very
  rare case when SRCREV is not on any branch.

Signed-off-by: Michael Opdenacker <[email protected]>
  • Loading branch information
Michael Opdenacker committed Jan 19, 2024
1 parent 5194bbd commit edcbdb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slides/yocto-recipe-basics/yocto-recipe-basics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ \subsection{Organization of a recipe}
\item \code{git://<url>;protocol=<protocol>;branch=<branch>}
\item When using git, it is necessary to also define
\yoctovar{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.
be able to do offline builds (a git tag can change, you then need
to connect to the repository to check for a possible update).
The \code{branch} parameter is mandatory as a safety check
that \yoctovar{SRCREV} is on the expected branch.
\end{itemize}
\item The \code{http}, \code{https} and \code{ftp} schemes:
\begin{itemize}
Expand Down

0 comments on commit edcbdb4

Please sign in to comment.