From 834197577789806e725feae05edf6d734fe33368 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 5 Jul 2022 21:48:53 +0200 Subject: [PATCH] Add hello world bb Signed-off-by: Richard Weinberger --- meta-kaktus/recipes-kaktus/hello/hello/hw.c | 7 +++++++ meta-kaktus/recipes-kaktus/hello/hello_0.1.bb | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 meta-kaktus/recipes-kaktus/hello/hello/hw.c create mode 100644 meta-kaktus/recipes-kaktus/hello/hello_0.1.bb diff --git a/meta-kaktus/recipes-kaktus/hello/hello/hw.c b/meta-kaktus/recipes-kaktus/hello/hello/hw.c new file mode 100644 index 0000000..93f38db --- /dev/null +++ b/meta-kaktus/recipes-kaktus/hello/hello/hw.c @@ -0,0 +1,7 @@ +#include + +int main(void) { + puts("Hello, world!"); + + return 0; +} diff --git a/meta-kaktus/recipes-kaktus/hello/hello_0.1.bb b/meta-kaktus/recipes-kaktus/hello/hello_0.1.bb new file mode 100644 index 0000000..408d0de --- /dev/null +++ b/meta-kaktus/recipes-kaktus/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} +} -- 2.50.1