xref: /OK3568_Linux_fs/yocto/poky/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
2
3LICENSE = "MIT"
4
5SRC_URI = "file://hello.c \
6           file://gdb.sh \
7"
8
9S = "${WORKDIR}"
10
11do_compile () {
12	${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS}
13}
14
15do_install () {
16	install -d ${D}${bindir}
17	install -m 755 ${WORKDIR}/gdb.sh ${D}${bindir}/
18	install -m 755 hello1 ${D}${bindir}/hello1
19	ln ${D}${bindir}/hello1 ${D}${bindir}/hello2
20
21	install -d ${D}${libexecdir}
22	ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello3
23	ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello4
24
25	dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M
26}
27
28RDEPENDS:${PN}-gdb += "gdb"
29PACKAGES =+ "${PN}-gdb"
30FILES:${PN}-gdb = "${bindir}/gdb.sh"
31