\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/krogoth -b krogoth
poky/meta-ti % cd ..
poky % git checkout -t origin/krogoth -b krogoth
\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}
