meta-imbus/recipes-hello/helloworld/helloworld_1.0.bb
2026-02-03 18:12:28 +01:00

24 lines
628 B
BlitzBasic

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
}