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/poky/meta-linutronix/recipes-hello/hello | |
| parent | 40929aee684996ccdedb82b1fed73ccb0ce6f2e3 (diff) | |
add yocto examples
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello')
| -rw-r--r-- | distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c | 8 | ||||
| -rw-r--r-- | distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c new file mode 100644 index 0000000..b182eef --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main (int argc, char **argv) +{ + printf("Hello World - DEUTA\n"); + + return 0; +} diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb new file mode 100644 index 0000000..0fa88f6 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/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} +} |
