diff options
| author | Jan Altenberg <jan@linutronix.de> | 2016-05-20 19:02:57 +0200 |
|---|---|---|
| committer | Jan Altenberg <jan@linutronix.de> | 2016-05-20 19:02:57 +0200 |
| commit | de3626497bba95b5d44550c9c23b99fd20a8d9c8 (patch) | |
| tree | deb98eff85fffccf9f7b2818bf837e6ab51d836a /distribution/yocto-advanced/yocto-scripts.tex | |
| parent | 29bcbff58ced768f9f4edbc6f4d9d9604552f09e (diff) | |
| parent | f4af36737b6e0ca37f5b17434b8f37d04cf083d7 (diff) | |
Merge remote-tracking branch 'remotes/origin/devel/manut/yocto'
Integration of Manu's latest Yocto topics (autotools)
Diffstat (limited to 'distribution/yocto-advanced/yocto-scripts.tex')
| -rw-r--r-- | distribution/yocto-advanced/yocto-scripts.tex | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/yocto-scripts.tex b/distribution/yocto-advanced/yocto-scripts.tex new file mode 100644 index 0000000..54c2180 --- /dev/null +++ b/distribution/yocto-advanced/yocto-scripts.tex @@ -0,0 +1,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} |
