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 /examples/yocto/meta-mini/recipes-hello/hello | |
| 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 'examples/yocto/meta-mini/recipes-hello/hello')
| -rw-r--r-- | examples/yocto/meta-mini/recipes-hello/hello/files/hello.c | 8 | ||||
| -rw-r--r-- | examples/yocto/meta-mini/recipes-hello/hello/hello.bb | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/examples/yocto/meta-mini/recipes-hello/hello/files/hello.c b/examples/yocto/meta-mini/recipes-hello/hello/files/hello.c new file mode 100644 index 0000000..f202e2f --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hello/files/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main (int argc, char **argv) +{ + printf ("hello yocto world\n"); + + return 0; +} diff --git a/examples/yocto/meta-mini/recipes-hello/hello/hello.bb b/examples/yocto/meta-mini/recipes-hello/hello/hello.bb new file mode 100644 index 0000000..6969b44 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hello/hello.bb @@ -0,0 +1,18 @@ +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} +} |
