Initial
This commit is contained in:
commit
b4d9399de6
16 changed files with 465 additions and 0 deletions
3
recipes-hello/helloworld/files/helloworld.c
Normal file
3
recipes-hello/helloworld/files/helloworld.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(void) { printf("Hello, world!"); }
|
||||
24
recipes-hello/helloworld/helloworld_1.0.bb
Normal file
24
recipes-hello/helloworld/helloworld_1.0.bb
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue