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>
---
 .../yocto-advanced/yocto-create-own-layer.tex      | 89 ++++++++++++++++++++++
 1 file changed, 89 insertions(+)
 create mode 100644 distribution/yocto-advanced/yocto-create-own-layer.tex

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

diff --git a/distribution/yocto-advanced/yocto-create-own-layer.tex b/distribution/yocto-advanced/yocto-create-own-layer.tex
new file mode 100644
index 0000000..95d4916
--- /dev/null
+++ b/distribution/yocto-advanced/yocto-create-own-layer.tex
@@ -0,0 +1,89 @@
+\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}
-- 
cgit v1.2.3

