summaryrefslogtreecommitdiff
path: root/distribution/yocto-basic/yocto-workflow.tex
diff options
context:
space:
mode:
Diffstat (limited to 'distribution/yocto-basic/yocto-workflow.tex')
-rw-r--r--distribution/yocto-basic/yocto-workflow.tex79
1 files changed, 68 insertions, 11 deletions
diff --git a/distribution/yocto-basic/yocto-workflow.tex b/distribution/yocto-basic/yocto-workflow.tex
index 3810acb..3d9651a 100644
--- a/distribution/yocto-basic/yocto-workflow.tex
+++ b/distribution/yocto-basic/yocto-workflow.tex
@@ -8,7 +8,7 @@
\begin{verbatim}
% git clone http://git.yoctoproject.org/git/poky
% cd poky
-% git checkout origin/krogoth -b krogoth -t
+% git checkout origin/pyro -b pyro -t
\end{verbatim}
\end{frame}
@@ -106,7 +106,6 @@ poky
\begin{verbatim}
VAR = "value"
\end{verbatim}
-\pause
\begin{itemize}
\item normal assignment
\item values need to be surrounded by double quotes
@@ -119,7 +118,6 @@ VAR = "value"
VAR ?= "1"
VAR ?= "2"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR is set to "1" in this example
\item if there are multiple assignments using ?= the first one is used
@@ -132,7 +130,6 @@ VAR ?= "2"
VAR ??= "1"
VAR ??= "2"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR is set to "2" in this example
\item if there are multiple assignments using ??= the last one is used
@@ -148,7 +145,6 @@ VAR_A ?= "34"
VAR_B ?= "12"
VAR_B ??= "34"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR\_A contains "34"
\item VAR\_B contains "12"
@@ -164,7 +160,6 @@ VAR = "56"
VAR ?= "78"
VAR ??= "78"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR contains "56"
\end{itemize}
@@ -180,7 +175,6 @@ VAR_C := "C:${VAR_A}"
VAR_A = "33"
echo ${VAR_A} ${VAR_B} ${VAR_C}
\end{verbatim}
-\pause
\begin{itemize}
\item 33 B:33 C:22
\item the content of VAR\_C is expanded immediately on assignment
@@ -196,7 +190,6 @@ VAR_A += "34"
VAR_B = "56"
VAR_B =+ "78"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR\_A contains "12 34"
\item VAR\_B contains "78 56"
@@ -212,7 +205,6 @@ VAR_A .= "34"
VAR_B = "56"
VAR_B =. "78"
\end{verbatim}
-\pause
\begin{itemize}
\item VAR\_A contains "1234"
\item VAR\_B contains "7856"
@@ -232,6 +224,55 @@ FOO="456"
\end{verbatim}
\end{frame}
+\begin{frame}[fragile]
+\frametitle{prepend/append}
+\begin{verbatim}
+VAR = "34"
+VAR_append = "56"
+VAR_prepend = "12"
+\end{verbatim}
+\begin{itemize}
+ \item VAR contains "123456"
+ \item there are no spaces between the appended values
+\end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{overrides}
+\begin{verbatim}
+OVERRIDES="string1:string2"
+VAR = "foo"
+VAR_string1 = "bar"
+\end{verbatim}
+\begin{itemize}
+ \item if string1 is listed in OVERRIDES, use "bar" for value of VAR, otherwise use "foo"
+\end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{variable flags}
+\begin{verbatim}
+VAR[some_flag]="foo"
+\end{verbatim}
+\begin{itemize}
+ \item associate a subsidiary flag value to a variable
+\end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Key Expansion}
+Key expansion happens when the BitBake datastore is finalized just before BitBake expands overrides.
+\begin{verbatim}
+A${B} = "X"
+B = "2"
+A2 = "Y"
+\end{verbatim}
+\begin{itemize}
+ \item Key expansion happens just before BitBake expands overrides.
+ \item A2 contains "X"
+\end{itemize}
+\end{frame}
+
\subsection{Recipes}
\begin{frame}
\frametitle{typical progressing}
@@ -319,7 +360,6 @@ which gives the developer an opportunity to review any license change.
\begin{verbatim}
SRC_URI = "<protocol>://<host>/<path>;<OptionA=xxx>;<OptionB=xxx>"
\end{verbatim}
-\pause
multiple urls can be set in a SRC\_URI variable:
\begin{verbatim}
SRC_URI = "<url1>;name=url1 <url2>;name=url2"
@@ -436,6 +476,23 @@ predefined classes are:
\end{itemize}
\end{frame}
+\begin{frame}
+\frametitle{include}
+Includes a complete file
+\begin{itemize}
+\item include examle-defs.inc
+\item includes the first file it can find within BBPATH
+\end{itemize}
+\end{frame}
+
+\begin{frame}
+\frametitle{require}
+Same as include, but returns an error, if include file not found.
+\begin{itemize}
+\item includes the first file it can find within BBPATH
+\end{itemize}
+\end{frame}
+
\subsection{Append files}
\begin{frame}
\frametitle{basics}
@@ -469,7 +526,7 @@ an append file must be named after the base package:
\frametitle{basics}
\begin{itemize}
\item are defined and ordered in classes
- \item can be overriden by classes and recipes
+ \item can be overridden by classes and recipes
\end{itemize}
\end{frame}