diff options
| author | Manuel Traut <manut@linutronix.de> | 2014-08-29 14:58:09 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2014-08-29 14:58:09 +0200 |
| commit | 5cb6ad7b8cfd08d1455880adc76c6e0c851d433e (patch) | |
| tree | cd5e6688006e95d70e1137d8181063f5ffdc2225 /distribution/yocto-advanced/pres_yocto-advanced.tex | |
| parent | 40929aee684996ccdedb82b1fed73ccb0ce6f2e3 (diff) | |
add yocto examples
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/pres_yocto-advanced.tex')
| -rw-r--r-- | distribution/yocto-advanced/pres_yocto-advanced.tex | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/distribution/yocto-advanced/pres_yocto-advanced.tex b/distribution/yocto-advanced/pres_yocto-advanced.tex index 44d8997..faa513d 100644 --- a/distribution/yocto-advanced/pres_yocto-advanced.tex +++ b/distribution/yocto-advanced/pres_yocto-advanced.tex @@ -643,14 +643,52 @@ PREFERRED\_VERSION\_virtual/kernel = "3.16" \end{itemize} \end{frame} +\begin{frame} +\frametitle{adding an own application} +\begin{itemize} + \item recipe already available? check http://layers.openembedded.org + \item look for a similar recipe + \item proper bbclass available? +\end{itemize} +\end{frame} + +\begin{frame}[fragile] +\frametitle{as simple as posible} +use this folder layout +\begin{verbatim} +poky/meta-linutronix/recipes-hello % tree +hello +├── files +│ └── hello.c +└── hello.bb +\end{verbatim} +\end{frame} +\begin{frame}[fragile] +\frametitle{as simple as posible \#2} +this is the content of hello.bb +\begin{verbatim} +DESCRIPTION = "Simple helloworld application" +SECTION = "examples" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda +2f7b4f302" +PR = "r0" +SRC_URI = "file://hello.c" +S = "${WORKDIR}" -\begin{frame} -\frametitle{adding own applications} -already available? check http://layers.openembedded.org -bla +do_compile() { + ${CC} hello.c -o hello +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 hello ${D}${bindir} +} +\end{verbatim} \end{frame} + \begin{frame} \frametitle{use PR Service} bla |
