]> www.infradead.org Git - users/rw/kaktus.git/commitdiff
Add hello world bb hello_bb origin/hello_bb
authorRichard Weinberger <richard@nod.at>
Tue, 5 Jul 2022 19:48:53 +0000 (21:48 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 5 Jul 2022 19:48:53 +0000 (21:48 +0200)
Signed-off-by: Richard Weinberger <richard@nod.at>
meta-kaktus/recipes-kaktus/hello/hello/hw.c [new file with mode: 0644]
meta-kaktus/recipes-kaktus/hello/hello_0.1.bb [new file with mode: 0644]

diff --git a/meta-kaktus/recipes-kaktus/hello/hello/hw.c b/meta-kaktus/recipes-kaktus/hello/hello/hw.c
new file mode 100644 (file)
index 0000000..93f38db
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+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 (file)
index 0000000..408d0de
--- /dev/null
@@ -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}
+}