\subsection{Creating a layer}
\begin{frame}[fragile]
\frametitle{with yocto helper script}
\begin{verbatim}
poky/build-ti % cd ..
poky % yocto-layer create mini
Please enter the layer priority you'd like to use for the layer:
[default: 6] <return>
Would you like to have an example recipe created? (y/n)
[default: n] <return>
Would you like to have an example bbappend file created? (y/n)
[default: n] <return>
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{manage the layer with git}
\begin{verbatim}
poky % cd meta-mini
poky/meta-mini % git init .
poky/meta-mini % git add *
poky/meta-mini % git commit -sam 'inital version'
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{minimal distribution}
distros are defined in a layer, e.g.

meta-linutronix/conf/distro/mini.conf:
\begin{verbatim}
meta-mini/conf/distro/mini.conf:
DISTRO = "mini"
DISTRO_NAME = "mini 1.0 (for foo devices)"
DISTRO_VERSION = "1.0"
DISTRO_CODENAME = "mal"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
SDK_VENDOR = "-linutronix"
SDK_VERSION := "${@'${DISTRO_VERSION}'}"
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
MAINTAINER = "Manuel Traut <manut@linutronix.de>"
TARGET_VENDOR = "-linutronix"
LOCALCONF_VERSION = "1"
LAYER_CONF_VERSION ?= "6"
DISTRO_FEATURES ?= "opengl ${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}"
DISTRO_FEATURES_append = " systemd"
TCLIBCAPPEND = ""
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\begin{verbatim}
CONNECTIVITY_CHECK_URIS ?= " \
             https://eula-downloads.yoctoproject.org/index.php \
             http://bugzilla.yoctoproject.org/report.cgi"
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\begin{verbatim}
SANITY_TESTED_DISTROS ?= " \
            Ubuntu-14.04 \n \
            Debian-7.0 \n \
            Debian-7.1 \n \
            Debian-7.2 \n \
            Debian-7.3 \n \
            Debian-7.4 \n \
            "

BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
OELAYOUT_ABI = "8"
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{add distro to git repo}
\begin{verbatim}
poky/meta-mini % git add conf/distro/mini.conf
poky/meta-mini % git commit -sam 'add mini distro'
\end{verbatim}
\end{frame}
