Skip to content

Commit

Permalink
yocto-recipe-advanced: more debugging tips
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
alexandrebelloni committed Mar 19, 2021
1 parent 10950e1 commit 3e7c454
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
Expand Up @@ -327,7 +327,34 @@ \subsection{Debugging recipes}
\frametitle{Debugging recipes}
\begin{itemize}
\item For each task, logs are available in the \code{temp}
directory in the work folder of a recipe.
directory in the work folder of a recipe. This includes both
the actual tasks code that ran and the output of the task.
\item bitbake can dump the whole environment, including the
variable values and how they were set:
\begin{block}{}
\begin{minted}[fontsize=\scriptsize]{console}
$ bitbake -e ninvaders
# $DEPENDS [4 operations]
# set /yocto-labs/poky/meta/conf/bitbake.conf:268
# ""
# set /yocto-labs/poky/meta/conf/documentation.conf:130
# [doc] "Lists a recipe's build-time dependencies (i.e. other recipe files)."
# _prepend /yocto-training/yocto-labs/poky/meta/classes/base.bbclass:74
# "${BASEDEPENDS} "
# set /yocto-labs/meta-bootlinlabs/recipes-games/ninvaders/ninvaders.inc:11
# "ncurses"
# pre-expansion value:
# "${BASEDEPENDS} ncurses"
DEPENDS="virtual/arm-poky-linux-gnueabi-gcc virtual/arm-poky-linux-gnueabi-compilerlibs virtual/libc ncurses"
\end{minted}
\end{block}

\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{Debugging recipes}
\begin{itemize}
\item A development shell, exporting the full environment can be
used to debug build failures:
\begin{block}{}
Expand Down

0 comments on commit 3e7c454

Please sign in to comment.