[FE training-materials-updates] yocto: labs: rework a bit the extended recipe part
Antoine Ténart
antoine.tenart at free-electrons.com
Fri Nov 7 14:56:49 CET 2014
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=4c7b331e663e789a3478268a61b7ef04b1e8ed4e
>---------------------------------------------------------------
commit 4c7b331e663e789a3478268a61b7ef04b1e8ed4e
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date: Fri Nov 7 14:42:11 2014 +0100
yocto: labs: rework a bit the extended recipe part
Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>
>---------------------------------------------------------------
4c7b331e663e789a3478268a61b7ef04b1e8ed4e
labs/yocto-extend-recipe/yocto-extend-recipe.tex | 29 ++++++++++++------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/labs/yocto-extend-recipe/yocto-extend-recipe.tex b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
index 163e719..69a3770 100644
--- a/labs/yocto-extend-recipe/yocto-extend-recipe.tex
+++ b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
@@ -22,13 +22,6 @@ Project development documentation. You can find it at
\url{http://www.yoctoproject.org/docs/1.4.2/dev-manual/dev-manual.html}. We here
aim to extend the \code{linux-ti-staging} kernel recipe.
-Common errors are related to:
-\begin{itemize}
- \item Wrong recipe path
- \item Wrong recipe revision (\code{PR}). BitBake append files use a special
- variable to increment the version dynamically, if explicitly used.
-\end{itemize}
-
You can see available \code{bbappend} files and the recipe they apply to by
using the \code{bitbake-layers} tool (again!):
\begin{verbatim}
@@ -60,10 +53,9 @@ list.
Try adding the patches included in this lab to your BitBake append file.
-You can now clean the working directory of the \code{linux-ti-staging} package
-and start a fresh build to take the new patches into account:
+You can now rebuild the \code{linux-ti-staging} kernel to take the new
+patches into account:
\begin{verbatim}
-bitbake -c cleanall virtual/kernel
bitbake virtual/kernel
\end{verbatim}
@@ -90,7 +82,7 @@ You should see random characters appearing while playing with the Nunchuk. Be
aware that the driver we integrated also handles accelerometer events. Therefore,
moving the device will produce many events!
-\section{Play nInvaders!}
+\section{Patch nInvaders}
The nInvaders game uses keyboard events for its controls. We first need to apply
a patch introducing joystick support. The patch is located at
@@ -99,11 +91,20 @@ a patch introducing joystick support. The patch is located at
Add the patch to the nInvaders \code{SRC_URI} and do not forget you need to
specify where it is located.
-Then build a full \code{core-image-minimal} and update the NFS root directory
-it. After booting the board you should be able to play nInvaders with the
-keyboard \dots and the Nunchuk! The \code{C} button is used to confirm and to
+Then build a full \code{core-image-minimal} and update the NFS root
+directory.
+
+\section{Play nInvaders!}
+
+After booting the board you should be able to play nInvaders with the
+keyboard\dots and the Nunchuk! The \code{C} button is used to confirm and to
fire, and \code{Z} to pause the game.
+Access the board command line througth SSH, and launch the game:
+\begin{verbatim}
+$ ninvanders
+\end{verbatim}
+
\section{Going further: use the Yocto Kernel metadata}
When dealing with some kernel recipes, it can be possible to use a more advanced
More information about the training-materials-updates
mailing list