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 }