summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2020-03-13 15:55:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-15 22:23:19 +0000
commit0bd1b2aaf84b1c40b48b15ed4937d322296b4743 (patch)
tree6c4800cbafc572478376d611e66a7c1a5b37b0f9 /meta/recipes-extended
parent670e85a4a07b81a0b7114eb0b8f7c80b9307b653 (diff)
downloadpoky-0bd1b2aaf84b1c40b48b15ed4937d322296b4743.tar.gz
ltp: make multilib installable.
Many of ltp's tests are of syscalls and libc content. Enable installing mulitpule abi's. Use prefix consistently rather then hardcoded /opt/ltp everywhere. (From OE-Core rev: 66809f9257d667a0a0814f5c6d804f93cd4ad6e1) Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/ltp/ltp_20200120.bb16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20200120.bb b/meta/recipes-extended/ltp/ltp_20200120.bb
index 3e6cbc63f3..deac3917d7 100644
--- a/meta/recipes-extended/ltp/ltp_20200120.bb
+++ b/meta/recipes-extended/ltp/ltp_20200120.bb
@@ -45,8 +45,8 @@ inherit autotools-brokensep
45 45
46TARGET_CC_ARCH += "${LDFLAGS}" 46TARGET_CC_ARCH += "${LDFLAGS}"
47 47
48export prefix = "/opt/ltp" 48export prefix = "/opt/${PN}"
49export exec_prefix = "/opt/ltp" 49export exec_prefix = "/opt/${PN}"
50 50
51PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl," 51PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl,"
52EXTRA_AUTORECONF += "-I ${S}/testcases/realtime/m4" 52EXTRA_AUTORECONF += "-I ${S}/testcases/realtime/m4"
@@ -55,7 +55,7 @@ EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite --w
55EXTRA_OECONF += " --without-tirpc " 55EXTRA_OECONF += " --without-tirpc "
56 56
57do_install(){ 57do_install(){
58 install -d ${D}/opt/ltp/ 58 install -d ${D}${prefix}/
59 oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install 59 oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install
60 60
61 # fixup not deploy STPfailure_report.pl to avoid confusing about it fails to run 61 # fixup not deploy STPfailure_report.pl to avoid confusing about it fails to run
@@ -64,10 +64,10 @@ do_install(){
64 # runs on the OSDL's Scaleable Test Platform (STP) and it mainly accesses 64 # runs on the OSDL's Scaleable Test Platform (STP) and it mainly accesses
65 # http://khack.osdl.org to retrieve ltp test results run on 65 # http://khack.osdl.org to retrieve ltp test results run on
66 # OSDL's Scaleable Test Platform, but now http://khack.osdl.org unaccessible 66 # OSDL's Scaleable Test Platform, but now http://khack.osdl.org unaccessible
67 rm -rf ${D}/opt/ltp/bin/STPfailure_report.pl 67 rm -rf ${D}${prefix}/bin/STPfailure_report.pl
68 68
69 # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual 69 # Copy POSIX test suite into ${D}${prefix}/testcases by manual
70 cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases 70 cp -r testcases/open_posix_testsuite ${D}${prefix}/testcases
71 71
72 # Makefile were configured in the build system 72 # Makefile were configured in the build system
73 find ${D}${prefix} -name Makefile | xargs -n 1 sed -i \ 73 find ${D}${prefix} -name Makefile | xargs -n 1 sed -i \
@@ -101,10 +101,10 @@ RDEPENDS_${PN} = "\
101 tar \ 101 tar \
102" 102"
103 103
104FILES_${PN} += "/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/* /opt/ltp/testcases/data/nm01/lib.a /opt/ltp/lib/libmem.a" 104FILES_${PN} += "${prefix}/* ${prefix}/runtest/* ${prefix}/scenario_groups/* ${prefix}/testcases/bin/* ${prefix}/testcases/bin/*/bin/* ${prefix}/testscripts/* ${prefix}/testcases/open_posix_testsuite/* ${prefix}/testcases/open_posix_testsuite/conformance/* ${prefix}/testcases/open_posix_testsuite/Documentation/* ${prefix}/testcases/open_posix_testsuite/functional/* ${prefix}/testcases/open_posix_testsuite/include/* ${prefix}/testcases/open_posix_testsuite/scripts/* ${prefix}/testcases/open_posix_testsuite/stress/* ${prefix}/testcases/open_posix_testsuite/tools/* ${prefix}/testcases/data/nm01/lib.a ${prefix}/lib/libmem.a"
105 105
106# Avoid stripping some generated binaries otherwise some of the ltp tests such as ldd01 & nm01 fail 106# Avoid stripping some generated binaries otherwise some of the ltp tests such as ldd01 & nm01 fail
107INHIBIT_PACKAGE_STRIP_FILES = "/opt/ltp/testcases/bin/nm01 /opt/ltp/testcases/bin/ldd01" 107INHIBIT_PACKAGE_STRIP_FILES = "${prefix}/testcases/bin/nm01 ${prefix}/testcases/bin/ldd01"
108INSANE_SKIP_${PN} += "already-stripped staticdev" 108INSANE_SKIP_${PN} += "already-stripped staticdev"
109 109
110# Avoid file dependency scans, as LTP checks for things that may or may not 110# Avoid file dependency scans, as LTP checks for things that may or may not