\begin{frame}[fragile]
\frametitle{create an own layer for your BSP}
this layer typical includes
	\begin{itemize}
		\item machine configuration
		\item kernel
		\item bootloader
		\item wic configuration
		\item other hw specific recipes, or append files
	\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{yocto-bsp create}
	the yocto-bsp command can be used to get a template:
\begin{verbatim}
poky % yocto-bsp create wega arm
poky % cd meta-wega
\end{verbatim}
	The following files need to be available inside the layer:
\begin{verbatim}
recipes-kernel/linux-phytec/linux-phytec_4.4.52.bb
recipes-kernel/linux-phytec/files/wega/defconfig
recipes-bsp/barebox/barebox_2017.03.bb
recipes-bsp/barebox/files/wega/defconfig-ipl
recipes-bsp/barebox/files/wega/defconfig
scripts/lib/wic/canned-wks/am335x-sdimage.wks
conf/machine/wega.conf
conf/layer.conf
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{create an own layer for your sw distro}
this layer typical includes
	\begin{itemize}
		\item distro configuration
		\item own applications
		\item append files to customize standard sw from other layers
		\item own classes
	\end{itemize}
	e.g. to create meta-foo use:
\begin{verbatim}
poky % yocto-layer create foo
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{generate a new build environment}
\begin{verbatim}
poky % . oe-init-build-env build-wega
poky/build-wega %
\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}
\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-wega \
  /home/devel/poky/meta-foo \
  "
\end{verbatim}
\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-wega             /home/devel/poky/meta-wega            6
meta-foo              /home/devel/poky/meta-foo             7
\end{verbatim}
\end{frame}
