blob: 40f140b23fec869905ca666313e0bd01e001e960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
\input{configpres}
\title{YOCTO - Basics}
\maketitle
\begin{frame}
\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{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{itemize}
\item PREFERRED\_VERSION is used to specify a particular version
\item by default, files have a preference of "0"
\item setting DEFAULT\_PREFERENCE to "-1" makes the recipe unlikely to be used
unless it is explicitly referenced.
\item setting DEFAULT\_PREFERENCE to "1" makes it likely the recipe is used
\item PREFERRED\_VERSION overrides any DEFAULT\_PREFERENCE setting
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Machines}
bla
\end{frame}
\begin{frame}
\frametitle{Configuration}
bla
\end{frame}
\begin{frame}
\frametitle{using meta-fsl}
bla
\end{frame}
\begin{frame}
\frametitle{using meta-ti}
bla
\end{frame}
\begin{frame}
\frametitle{commands and debug methods}
bla
\end{frame}
\input{tailpres}
|