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