diff options
Diffstat (limited to 'distribution/yocto-basic/pres_yocto-basic.tex')
| -rw-r--r-- | distribution/yocto-basic/pres_yocto-basic.tex | 67 |
1 files changed, 63 insertions, 4 deletions
diff --git a/distribution/yocto-basic/pres_yocto-basic.tex b/distribution/yocto-basic/pres_yocto-basic.tex index 3a82298..1e2e4c4 100644 --- a/distribution/yocto-basic/pres_yocto-basic.tex +++ b/distribution/yocto-basic/pres_yocto-basic.tex @@ -4,20 +4,79 @@ \maketitle \begin{frame} -\frametitle{Recipes} -bla +\frametitle{Classes} +\begin{itemize} +\item denoted by the .bbclass extension +\item base.bbclass is automatically included by all other classes and recipes. +\item common tasks and there execution order is defined in base.bbclass +\item tasks can be added, overridden, extended or used by other classes +\end{itemize} \end{frame} \begin{frame} -\frametitle{Classes} -bla +\frametitle{Recipes} +\item a .bb file inherits classes and populates them with data +\item bitbake is used to schedule the tasks defined in a recipe \end{frame} \begin{frame} \frametitle{Layers} +\begin{itemize} +\item used to isolate different types of customizations from each other +\item e.g. own layer for machine specific stuff, one for own applications +\item .bbappend files are used to modify recipes from another layer +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{typical recipe progressing} +\begin{enumerate} +\item fetch source files +\item extract sources +\item patch sources +\item configure sources +\item compilation +\item packaging +\end{enumerate} +\end{frame} + +\begin{frame} +\frametitle{recipe syntax} +\begin{description} +\item [inherit] use a class (or multiple classes) +\item [PV] package-version (retrived from filename name\_version.bb) +\item [PN] package-name (retrived from filename name\_version.bb) +\end{description} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Providers} +\begin{verbatim} +--8<- -my-kernel\_3.16.bb -- +PROVIDES += "virtual/kernel" +--8<------------------------ +\end{verbatim} + +PREFEREED\_PROVIDER\_virtual/kernel = "linux-yocto" +\end{frame} + +\begin{frame} +\frametitle{Preferences} +\begin{verbatim} +--8<- -my-kernel\_3.16.bb -- +PROVIDES += "virtual/kernel" +--8<------------------------ +\end{verbatim} + +PREFEREED\_PROVIDER\_virtual/kernel = "linux-yocto" +\end{frame} + +\begin{frame} +\frametitle{Machines} bla \end{frame} + \begin{frame} \frametitle{Configuration} bla |
