summaryrefslogtreecommitdiffstats
path: root/meta-selftest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-selftest')
-rw-r--r--meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb b/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb
index 5632bdac7a..64fea8ed95 100644
--- a/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb
+++ b/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb
@@ -11,6 +11,9 @@ UNPACKDIR = "${S}"
11 11
12do_compile () { 12do_compile () {
13 ${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS} 13 ${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS}
14
15 ${CC} hello.c -c -o hello.o ${CFLAGS}
16 ${AR} rcs libhello.a hello.o
14} 17}
15 18
16do_install () { 19do_install () {
@@ -23,9 +26,19 @@ do_install () {
23 ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello3 26 ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello3
24 ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello4 27 ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello4
25 28
29 # We need so many hardlink copies to look for specific race conditions
30 install -d ${D}${libdir}
31 install -m 0644 libhello.a ${D}${libdir}
32 for num in `seq 1 100` ; do
33 ln ${D}${libdir}/libhello.a ${D}${libdir}/libhello-${num}.a
34 done
35
26 dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M 36 dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M
27} 37}
28 38
29RDEPENDS:${PN}-gdb += "gdb" 39RDEPENDS:${PN}-gdb += "gdb"
30PACKAGES =+ "${PN}-gdb" 40PACKAGES =+ "${PN}-gdb"
31FILES:${PN}-gdb = "${bindir}/gdb.sh" 41FILES:${PN}-gdb = "${bindir}/gdb.sh"
42
43PACKAGE_STRIP_STATIC = "1"
44PACKAGE_DEBUG_STATIC_SPLIT = "1"