[bootlin/training-materials updates] master: yocto-recipe-advanced: more debugging tips (3e7c454e)

Alexandre Belloni alexandre.belloni at bootlin.com
Fri Mar 19 12:45:59 CET 2021


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

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

commit 3e7c454e5f595249196e41692bc83b5743d5ee65
Author: Alexandre Belloni <alexandre.belloni at bootlin.com>
Date:   Fri Mar 19 12:45:59 2021 +0100

    yocto-recipe-advanced: more debugging tips
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni at bootlin.com>


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

3e7c454e5f595249196e41692bc83b5743d5ee65
 .../yocto-recipe-advanced.tex                      | 29 +++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index 085ae0c8..9102e329 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -327,7 +327,34 @@ do_install() {
   \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}{}




More information about the training-materials-updates mailing list