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-add-simple-application.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-add-simple-application.tex')
| -rw-r--r-- | distribution/yocto-advanced/yocto-add-simple-application.tex | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/yocto-add-simple-application.tex b/distribution/yocto-advanced/yocto-add-simple-application.tex new file mode 100644 index 0000000..cf7fa57 --- /dev/null +++ b/distribution/yocto-advanced/yocto-add-simple-application.tex @@ -0,0 +1,47 @@ +\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} +on the next slides, we have a look what is useful for very simple applications, +autotools and cmake based projects and qt applications. +\end{frame} + +\begin{frame}[fragile] +\frametitle{as simple as posible} +use this folder layout +\begin{verbatim} +poky/meta-mini/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=0835ade698e0bcf8506ecda2f7b4f302" +PR = "r0" +SRC_URI = "file://hello.c" +S = "${WORKDIR}" + +do_compile() { + ${CC} hello.c -o hello +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 hello ${D}${bindir} +} +\end{verbatim} +\end{frame} + |
