xref: /OK3568_Linux_fs/yocto/poky/meta-skeleton/recipes-skeleton/hello-single/hello_1.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "Simple helloworld application"
2*4882a593SmuzhiyunSECTION = "examples"
3*4882a593SmuzhiyunLICENSE = "MIT"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunSRC_URI = "file://helloworld.c"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunS = "${WORKDIR}"
9*4882a593Smuzhiyun
10*4882a593Smuzhiyundo_compile() {
11*4882a593Smuzhiyun	${CC} ${LDFLAGS} helloworld.c -o helloworld
12*4882a593Smuzhiyun}
13*4882a593Smuzhiyun
14*4882a593Smuzhiyundo_install() {
15*4882a593Smuzhiyun	install -d ${D}${bindir}
16*4882a593Smuzhiyun	install -m 0755 helloworld ${D}${bindir}
17*4882a593Smuzhiyun}
18