blob: ef0430cc1b161a8243fccb483de4cb6d7f523085 (
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
|
\subsection{Yocto Helper Scripts}
\begin{frame}[fragile]
\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}[fragile]
\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}[fragile]
\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}[fragile]
\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}[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}
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}
|