From cc3b6c10f29fefe5800d4c6152ab2d1083369361 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Thu, 28 Aug 2014 09:56:42 +0200
Subject: describe layer configuration

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 .../yocto-advanced/pres_yocto-advanced.tex         | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

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

diff --git a/distribution/yocto-advanced/pres_yocto-advanced.tex b/distribution/yocto-advanced/pres_yocto-advanced.tex
index 84377f7..637d60e 100644
--- a/distribution/yocto-advanced/pres_yocto-advanced.tex
+++ b/distribution/yocto-advanced/pres_yocto-advanced.tex
@@ -27,6 +27,34 @@ DISTRO\_FEATURES
 bla
 \end{frame}
 
+\begin{frame}[fragile]
+	\frametitle{meta-*/conf/layer.conf}
+	\begin{itemize}
+		\item add conf and class directories to BBPATH
+			\begin{verbatim}BBPATH =. "${LAYERDIR}"\end{verbatim}
+		\pause
+		\item add recipe directories to BBFILES
+			\begin{verbatim}BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+			${LAYERDIR}/recipes-*/*/*.bbappend"\end{verbatim}
+		\pause
+		\item add layer name to BBFILE\_COLLECTIONS
+			\begin{verbatim}BBFILE_COLLECTIONS += "mylayer"\end{verbatim}
+		\pause
+		\item set root of the layer
+			\begin{verbatim}BBFILE_PATTERN_mylayer = "^${LAYERDIR}/"\end{verbatim}
+		\pause
+		\item set default priority of the layer
+			\begin{verbatim}BBFILE_PRIORITY_mylayer = "5"\end{verbatim}
+		\pause
+		\item set version of layer (only increment if dependencies with other
+			layers are affected)
+			\begin{verbatim}LAYERVERSION_mylayer = "2"\end{verbatim}
+		\pause
+		\item set dependencies to other layers
+			\begin{verbatim}LAYERDEPENDS_mylayer = "meta-yocto"\end{verbatim}
+	\end{itemize}
+\end{frame}
+
 \begin{frame}
 \frametitle{adding a kernel}
 bla
-- 
cgit v1.2.3

