diff options
Diffstat (limited to 'meta-selftest')
| -rw-r--r-- | meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb | 13 |
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 be346b8a0e..052bf0c92a 100644 --- a/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb +++ b/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb | |||
| @@ -10,6 +10,9 @@ S = "${WORKDIR}" | |||
| 10 | 10 | ||
| 11 | do_compile () { | 11 | do_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 | ||
| 15 | do_install () { | 18 | do_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 | ||
| 28 | RDEPENDS:${PN}-gdb += "gdb" | 38 | RDEPENDS:${PN}-gdb += "gdb" |
| 29 | PACKAGES =+ "${PN}-gdb" | 39 | PACKAGES =+ "${PN}-gdb" |
| 30 | FILES:${PN}-gdb = "${bindir}/gdb.sh" | 40 | FILES:${PN}-gdb = "${bindir}/gdb.sh" |
| 41 | |||
| 42 | PACKAGE_STRIP_STATIC = "1" | ||
| 43 | PACKAGE_DEBUG_STATIC_SPLIT = "1" | ||
