From e11da41853ddb36745c68adaab352fbe00bebc16 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Wed, 18 May 2016 09:44:42 +0200
Subject: split yocto advanced training

use several tex files and include them in the presentation

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-advanced/yocto-ti-layer.tex | 103 +++++++++++++++++++++++++
 1 file changed, 103 insertions(+)
 create mode 100644 distribution/yocto-advanced/yocto-ti-layer.tex

(limited to 'distribution/yocto-advanced/yocto-ti-layer.tex')

diff --git a/distribution/yocto-advanced/yocto-ti-layer.tex b/distribution/yocto-advanced/yocto-ti-layer.tex
new file mode 100644
index 0000000..5b5daa9
--- /dev/null
+++ b/distribution/yocto-advanced/yocto-ti-layer.tex
@@ -0,0 +1,103 @@
+\begin{frame}[fragile]
+\frametitle{get an existing layer}
+retrive the layer from your BSP/SoC vendor
+\begin{verbatim}
+poky % git clone git://git.yoctoproject.org/meta-ti
+poky % cd meta-ti
+poky/meta-ti % git branch -r
+poky/meta-ti % git checkout -t origin/fido -b fido
+poky/meta-ti % cd ..
+poky % git checkout -t origin/fido -b fido
+\end{verbatim}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{layer dependencies}
+have a look at it's dependencies
+\begin{verbatim}
+poky % cat meta-ti/conf/layer.conf | grep LAYERDEPENDS
+\end{verbatim}
+no dependencies, so we are safe to continue, otherwise
+retrive more layers.
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{generate a new build environment}
+\begin{verbatim}
+poky % . oe-init-build-env build-ti
+poky/build-ti %
+\end{verbatim}
+\end{frame}
+
+\subsection{configure build environment}
+\begin{frame}
+\frametitle{overview}
+builds are configured using two configuration files
+\begin{itemize}
+	\item /home/devel/poky/build-ti/conf/bblayers.conf
+	\item /home/devel/poky/build-ti/conf/local.conf
+\end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{bblayers.conf}
+additional layers are added with absolute! path to the BBLAYERS variable
+\begin{verbatim}
+BBLAYERS ?= " \
+  /home/devel/poky/meta \
+  /home/devel/poky/meta-yocto \
+  /home/devel/poky/meta-yocto-bsp \
+  "
+\end{verbatim}
+\pause
+\begin{verbatim}
+% bitbake-layers show-layers
+layer                 path                                  priority
+=====================================================================
+meta                  /home/devel/poky/meta                 5
+meta-yocto            /home/devel/poky/meta-yocto           5
+meta-yocto-bsp        /home/devel/poky/meta-yocto-bsp       5
+\end{verbatim}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{add ti and meta-mini layers}
+modify the BBLAYERS variable in bblayers.conf
+\begin{verbatim}
+BBLAYERS ?= " \
+  /home/devel/poky/meta \
+  /home/devel/poky/meta-yocto \
+  /home/devel/poky/meta-yocto-bsp \
+  /home/devel/poky/meta-ti \
+  "
+\end{verbatim}
+\pause
+\begin{verbatim}
+% bitbake-layers show-layers
+layer                 path                                  priority
+=====================================================================
+meta                  /home/devel/poky/meta                 5
+meta-yocto            /home/devel/poky/meta-yocto           5
+meta-yocto-bsp        /home/devel/poky/meta-yocto-bsp       5
+meta-ti               /home/devel/poky/meta-ti              6
+\end{verbatim}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{overlayed recipes}
+to see which recipes replace official ones:
+\begin{verbatim}
+poky/build-ti % bitbake-layers show-overlayed
+Parsing recipes..done.
+=== Overlayed recipes ===
+directfb:
+  meta-ti              1.6.3
+  meta                 1.7.1
+directfb-examples:
+  meta-ti              1.6.0
+  meta                 1.7.0
+xserver-xorg:
+  meta-ti              2:1.14.4
+  meta                 2:1.15.0
+\end{verbatim}
+\end{frame}
-- 
cgit v1.2.3

