diff options
Diffstat (limited to 'meta/recipes-devtools/strace/strace_4.8.bb')
| -rw-r--r-- | meta/recipes-devtools/strace/strace_4.8.bb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-devtools/strace/strace_4.8.bb b/meta/recipes-devtools/strace/strace_4.8.bb index 0f4d2f001e..79a4ad79ab 100644 --- a/meta/recipes-devtools/strace/strace_4.8.bb +++ b/meta/recipes-devtools/strace/strace_4.8.bb | |||
| @@ -7,11 +7,16 @@ PR = "r0" | |||
| 7 | 7 | ||
| 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \ | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \ |
| 9 | file://git-version-gen \ | 9 | file://git-version-gen \ |
| 10 | file://strace-add-configure-options.patch" | 10 | file://strace-add-configure-options.patch \ |
| 11 | file://Makefile-ptest.patch \ | ||
| 12 | file://run-ptest \ | ||
| 13 | " | ||
| 11 | 14 | ||
| 12 | SRC_URI[md5sum] = "c575ef43829586801f514fd91bfe7575" | 15 | SRC_URI[md5sum] = "c575ef43829586801f514fd91bfe7575" |
| 13 | SRC_URI[sha256sum] = "f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8" | 16 | SRC_URI[sha256sum] = "f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8" |
| 14 | inherit autotools | 17 | |
| 18 | inherit autotools ptest | ||
| 19 | RDEPENDS_${PN}-ptest += "make" | ||
| 15 | 20 | ||
| 16 | PACKAGECONFIG_class-target ?= "libaio" | 21 | PACKAGECONFIG_class-target ?= "libaio" |
| 17 | PACKAGECONFIG_class-target += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}" | 22 | PACKAGECONFIG_class-target += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}" |
| @@ -21,6 +26,8 @@ PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" | |||
| 21 | 26 | ||
| 22 | export INCLUDES = "-I. -I./linux" | 27 | export INCLUDES = "-I. -I./linux" |
| 23 | 28 | ||
| 29 | TESTDIR = "tests" | ||
| 30 | |||
| 24 | do_configure_prepend() { | 31 | do_configure_prepend() { |
| 25 | cp ${WORKDIR}/git-version-gen ${S} | 32 | cp ${WORKDIR}/git-version-gen ${S} |
| 26 | } | 33 | } |
| @@ -30,4 +37,12 @@ do_install_append() { | |||
| 30 | rm ${D}${bindir}/strace-graph | 37 | rm ${D}${bindir}/strace-graph |
| 31 | } | 38 | } |
| 32 | 39 | ||
| 40 | do_compile_ptest() { | ||
| 41 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install_ptest() { | ||
| 45 | oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} | ||
| 46 | } | ||
| 47 | |||
| 33 | BBCLASSEXTEND = "native" | 48 | BBCLASSEXTEND = "native" |
