From c64c0e81c354a2795503aae3bc6352dc0a63d15a Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Wed, 18 May 2016 14:20:42 +0200
Subject: yocto: add slide with helper scripts

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-advanced/yocto-scripts.tex | 69 +++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 distribution/yocto-advanced/yocto-scripts.tex

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

diff --git a/distribution/yocto-advanced/yocto-scripts.tex b/distribution/yocto-advanced/yocto-scripts.tex
new file mode 100644
index 0000000..658d5d1
--- /dev/null
+++ b/distribution/yocto-advanced/yocto-scripts.tex
@@ -0,0 +1,69 @@
+\subsection{Yocto Helper Scripts}
+
+\begin{frame}
+\frametitle{wic image generator}
+bitbake generates fs images
+
+typically we need disk/nand images
+
+wic closes this gap
+
+\begin{verbatim}
+% wic list images
+% wic create qemux86-directdisk -o /tmp -e core-image-minimal
+\end{verbatim}
+\end{frame}
+
+\begin{frame}
+\frametitle{detect parts that need a rebuild}
+edit e.g. a .bb file after that run
+\begin{verbatim}
+bitbake-whatchanged
+\end{verbatim}
+\end{frame}
+
+\begin{frame}
+\frametitle{clean build directory}
+delete all files in the build directory, but not config files
+\begin{verbatim}
+# think twice before you type ;)
+cleanup-workdir
+\end{verbatim}
+\end{frame}
+
+\begin{frame}
+\frametitle{integrate sw with devtool}
+generate bitbake recipe for existing source
+\begin{verbatim}
+devtool add ~/mysrc
+devtool edit-recipe mysrc
+devtool build mysrc
+devtool build-image core-image-minimal
+\end{verbatim}
+\end{frame}
+
+\begin{frame}
+\frametitle{manage append files with recipetool}
+TODO: verify
+e.g. to replace config files on the target
+\begin{verbatim}
+recipetool appendfile ../meta-mini /etc/X11/xorg.conf /tmp/xorg.conf
+\end{verbatim}
+or to use modified sources
+\begin{verbatim}
+recipetool appendsrcfile[s] ../meta-mini hello /tmp/hello.c [/tmp/hello2.c]
+\end{verbatim}
+\end{frame}
+
+\begin{frame}
+\frametitle{wizard for creating machine configs}
+use,
+\begin{verbatim}
+yocto-bsp list karch
+\end{verbatim}
+select the architecture that has the closet match with your hardware and use
+\begin{verbatim}
+yocto-bsp create <karch> mymachine
+\end{verbatim}
+and answer the questions.
+\end{frame}
-- 
cgit v1.2.3


From 271767c477ebf0203f41d12f2913234a0113033a Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Wed, 18 May 2016 15:49:11 +0200
Subject: yocto-advanced: add missing [fragile]s

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-advanced/yocto-scripts.tex | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

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

diff --git a/distribution/yocto-advanced/yocto-scripts.tex b/distribution/yocto-advanced/yocto-scripts.tex
index 658d5d1..ef0430c 100644
--- a/distribution/yocto-advanced/yocto-scripts.tex
+++ b/distribution/yocto-advanced/yocto-scripts.tex
@@ -1,6 +1,6 @@
 \subsection{Yocto Helper Scripts}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{wic image generator}
 bitbake generates fs images
 
@@ -14,7 +14,7 @@ wic closes this gap
 \end{verbatim}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{detect parts that need a rebuild}
 edit e.g. a .bb file after that run
 \begin{verbatim}
@@ -22,7 +22,7 @@ bitbake-whatchanged
 \end{verbatim}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{clean build directory}
 delete all files in the build directory, but not config files
 \begin{verbatim}
@@ -31,7 +31,7 @@ cleanup-workdir
 \end{verbatim}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{integrate sw with devtool}
 generate bitbake recipe for existing source
 \begin{verbatim}
@@ -42,7 +42,7 @@ devtool build-image core-image-minimal
 \end{verbatim}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{manage append files with recipetool}
 TODO: verify
 e.g. to replace config files on the target
@@ -55,7 +55,7 @@ recipetool appendsrcfile[s] ../meta-mini hello /tmp/hello.c [/tmp/hello2.c]
 \end{verbatim}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{wizard for creating machine configs}
 use,
 \begin{verbatim}
-- 
cgit v1.2.3


From 31b470c97359db019597f7aa2a79bb0de82412b8 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Thu, 19 May 2016 20:17:16 +0200
Subject: yocto-scripts: remove recipetool

can't find out how to use it

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-advanced/yocto-scripts.tex | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

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

diff --git a/distribution/yocto-advanced/yocto-scripts.tex b/distribution/yocto-advanced/yocto-scripts.tex
index ef0430c..54c2180 100644
--- a/distribution/yocto-advanced/yocto-scripts.tex
+++ b/distribution/yocto-advanced/yocto-scripts.tex
@@ -42,18 +42,18 @@ devtool build-image core-image-minimal
 \end{verbatim}
 \end{frame}
 
-\begin{frame}[fragile]
-\frametitle{manage append files with recipetool}
-TODO: verify
-e.g. to replace config files on the target
-\begin{verbatim}
-recipetool appendfile ../meta-mini /etc/X11/xorg.conf /tmp/xorg.conf
-\end{verbatim}
-or to use modified sources
-\begin{verbatim}
-recipetool appendsrcfile[s] ../meta-mini hello /tmp/hello.c [/tmp/hello2.c]
-\end{verbatim}
-\end{frame}
+%\begin{frame}[fragile]
+%\frametitle{manage append files with recipetool}
+%TODO: verify
+%e.g. to replace config files on the target
+%\begin{verbatim}
+%recipetool appendfile ../meta-mini /etc/X11/xorg.conf /tmp/xorg.conf
+%\end{verbatim}
+%or to use modified sources
+%\begin{verbatim}
+%recipetool appendsrcfile[s] ../meta-mini hello /tmp/hello.c [/tmp/hello2.c]
+%\end{verbatim}
+%\end{frame}
 
 \begin{frame}[fragile]
 \frametitle{wizard for creating machine configs}
-- 
cgit v1.2.3

