diff options
author | Richard Weinberger <richard@nod.at> | 2021-05-22 12:53:10 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-05-22 12:53:10 +0200 |
commit | 7331952fe8480d1cb188f535c880b48dff9d366b (patch) | |
tree | 8ea3071af5951fa985e1576ba6efdb299d0c4507 | |
parent | 65baf4a48e21ad52153929cd79058a938a0117fc (diff) | |
download | yocto-rpi-example-7331952fe8480d1cb188f535c880b48dff9d366b.tar.gz |
Add HelloWorld
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | meta-itsyndikat/recipes-its/hello/hello/hw.c | 7 | ||||
-rw-r--r-- | meta-itsyndikat/recipes-its/hello/hello_0.1.bb | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/meta-itsyndikat/recipes-its/hello/hello/hw.c b/meta-itsyndikat/recipes-its/hello/hello/hw.c new file mode 100644 index 0000000..93f38db --- /dev/null +++ b/meta-itsyndikat/recipes-its/hello/hello/hw.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(void) { + puts("Hello, world!"); + + return 0; +} diff --git a/meta-itsyndikat/recipes-its/hello/hello_0.1.bb b/meta-itsyndikat/recipes-its/hello/hello_0.1.bb new file mode 100644 index 0000000..408d0de --- /dev/null +++ b/meta-itsyndikat/recipes-its/hello/hello_0.1.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Hello, world!" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +SRC_URI = "file://hw.c" + +S = "${WORKDIR}" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} hw.c -o hw +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 hw ${D}${bindir} +} |