From: Richard Weinberger Date: Tue, 5 Jul 2022 19:48:53 +0000 (+0200) Subject: Add hello world bb X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fhello_bb;p=users%2Frw%2Fkaktus.git Add hello world bb Signed-off-by: Richard Weinberger --- 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} +}