This commit is contained in:
Imbus 2026-02-03 18:12:28 +01:00
commit b4d9399de6
16 changed files with 465 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#include <stdio.h>
int main(void) { printf("Hello, world!"); }

View file

@ -0,0 +1,24 @@
DESCRIPTION = "Prints hello world"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}"
TARGET_CC_ARCH += "${LDFLAGS}"
FILES:${PN} += "/etc/helloworld"
do_compile() {
bbplain "Hello world: do_compile"
# ${CC} helloworld.c -o helloworld
${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld
}
do_install() {
# Install the helloworld application to /usr/bin on target
# install -d ${D}/usr/bin
# install -m 0755 helloworld ${D}/usr/bin
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
install -d ${D}/etc
touch ${D}/etc/helloworld
}