diff options
| author | Manuel Traut <manut@linutronix.de> | 2015-02-02 12:03:12 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2015-02-02 12:03:12 +0100 |
| commit | 76abc8590aa5324cca93b2c9c942879f8a6ac03f (patch) | |
| tree | ea03a68cddbfc13445fdbc2dcc45dda8d0d77e83 /distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello | |
| parent | fa6b03e6750cc665d8c857e082df78b3bbac5666 (diff) | |
add meta-mini yocto layer
initial version (not as submodule)
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello')
| -rw-r--r-- | distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/files/hello.c | 8 | ||||
| -rw-r--r-- | distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/hello.bb | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/files/hello.c b/distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/files/hello.c new file mode 100644 index 0000000..f202e2f --- /dev/null +++ b/distribution/yocto-advanced/poky/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/distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/hello.bb b/distribution/yocto-advanced/poky/meta-mini/recipes-hello/hello/hello.bb new file mode 100644 index 0000000..6969b44 --- /dev/null +++ b/distribution/yocto-advanced/poky/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} +} |
