summaryrefslogtreecommitdiffstats
path: root/meta/recipes-rt/rt-tests
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-rt/rt-tests')
-rw-r--r--meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch10
-rwxr-xr-xmeta/recipes-rt/rt-tests/files/rt_bmark.py2
-rw-r--r--meta/recipes-rt/rt-tests/hwlatdetect_git.bb (renamed from meta/recipes-rt/rt-tests/hwlatdetect_1.10.bb)8
-rw-r--r--meta/recipes-rt/rt-tests/rt-tests.inc6
-rw-r--r--meta/recipes-rt/rt-tests/rt-tests_git.bb (renamed from meta/recipes-rt/rt-tests/rt-tests_1.10.bb)13
5 files changed, 19 insertions, 20 deletions
diff --git a/meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch b/meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch
index b177ff7c5f..a1fc9e26a0 100644
--- a/meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch
+++ b/meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch
@@ -1,4 +1,4 @@
1From b608a817df2b652cd5fa1b5a7cf14b7d2d8afd5f Mon Sep 17 00:00:00 2001 1From 7cf4cf097895bd4c3f3d3a6f783c766b3173cf1a Mon Sep 17 00:00:00 2001
2From: Randy Witt <randy.e.witt@intel.com> 2From: Randy Witt <randy.e.witt@intel.com>
3Date: Fri, 16 Oct 2020 16:54:30 -0700 3Date: Fri, 16 Oct 2020 16:54:30 -0700
4Subject: [PATCH] Makefile: Allow for CC and AR to be overridden 4Subject: [PATCH] Makefile: Allow for CC and AR to be overridden
@@ -9,16 +9,17 @@ commit 7763cf316d7896fa05b816a46998f0827ab6e6eb.
9Signed-off-by: Randy Witt <randy.e.witt@intel.com> 9Signed-off-by: Randy Witt <randy.e.witt@intel.com>
10 10
11Upstream-Status: Inappropriate [other] 11Upstream-Status: Inappropriate [other]
12
12--- 13---
13 Makefile | 4 ++-- 14 Makefile | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-) 15 1 file changed, 2 insertions(+), 2 deletions(-)
15 16
16diff --git a/Makefile b/Makefile 17diff --git a/Makefile b/Makefile
17index 636f191..9f57d2c 100644 18index 223a839..a735584 100644
18--- a/Makefile 19--- a/Makefile
19+++ b/Makefile 20+++ b/Makefile
20@@ -1,6 +1,6 @@ 21@@ -1,6 +1,6 @@
21 VERSION = 1.10 22 VERSION = 2.6
22-CC = $(CROSS_COMPILE)gcc 23-CC = $(CROSS_COMPILE)gcc
23-AR = $(CROSS_COMPILE)ar 24-AR = $(CROSS_COMPILE)ar
24+CC ?= $(CROSS_COMPILE)gcc 25+CC ?= $(CROSS_COMPILE)gcc
@@ -26,6 +27,3 @@ index 636f191..9f57d2c 100644
26 27
27 OBJDIR = bld 28 OBJDIR = bld
28 29
29--
302.29.2
31
diff --git a/meta/recipes-rt/rt-tests/files/rt_bmark.py b/meta/recipes-rt/rt-tests/files/rt_bmark.py
index 3b84447a0f..2a4eed412f 100755
--- a/meta/recipes-rt/rt-tests/files/rt_bmark.py
+++ b/meta/recipes-rt/rt-tests/files/rt_bmark.py
@@ -265,7 +265,7 @@ cmd = ("cyclictest",
265 "-d", str(interval_delta), 265 "-d", str(interval_delta),
266 "-l", str(loop_count) 266 "-l", str(loop_count)
267 ) 267 )
268rex = re.compile(b"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)") 268rex = re.compile(r"C:\s*(\d+).*Min:\s*(\d+).*Avg:\s*(\d+).*Max:\s*(\d+)")
269 269
270def run_cyclictest_once(): 270def run_cyclictest_once():
271 res = subprocess.check_output(cmd) 271 res = subprocess.check_output(cmd)
diff --git a/meta/recipes-rt/rt-tests/hwlatdetect_1.10.bb b/meta/recipes-rt/rt-tests/hwlatdetect_git.bb
index 5f61c4ecdd..2dcc80965a 100644
--- a/meta/recipes-rt/rt-tests/hwlatdetect_1.10.bb
+++ b/meta/recipes-rt/rt-tests/hwlatdetect_git.bb
@@ -2,7 +2,7 @@ SUMMARY = "Hardware latency detector"
2DESCRIPTION = "Python utility for controlling the kernel hardware latency detection module (hwlat_detector.ko)." 2DESCRIPTION = "Python utility for controlling the kernel hardware latency detection module (hwlat_detector.ko)."
3HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" 3HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest"
4SECTION = "tests" 4SECTION = "tests"
5LICENSE = "GPLv2" 5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7 7
8require rt-tests.inc 8require rt-tests.inc
@@ -21,6 +21,6 @@ do_install() {
21 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py 21 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py
22} 22}
23 23
24FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py" 24FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py"
25RDEPENDS_${PN} = "python3-core " 25RDEPENDS:${PN} = "python3-core "
26RRECOMMENDS_${PN} = "kernel-module-hwlat-detector" 26RRECOMMENDS:${PN} = "kernel-module-hwlat-detector"
diff --git a/meta/recipes-rt/rt-tests/rt-tests.inc b/meta/recipes-rt/rt-tests/rt-tests.inc
index 9358f13d06..70315c4694 100644
--- a/meta/recipes-rt/rt-tests/rt-tests.inc
+++ b/meta/recipes-rt/rt-tests/rt-tests.inc
@@ -1,7 +1,7 @@
1# Version 1.8 1SRCREV = "217cd8518c5f7777d490892aa9c765a6b2782cb5"
2SRCREV = "32819581cc0509c9d58c33c3061f57abe0c40c88" 2PV = "2.6"
3PE = "1" 3PE = "1"
4 4
5SRC_URI = "git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git;branch=unstable/devel/latest" 5SRC_URI = "git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git;branch=main;protocol=https"
6 6
7S = "${WORKDIR}/git" 7S = "${WORKDIR}/git"
diff --git a/meta/recipes-rt/rt-tests/rt-tests_1.10.bb b/meta/recipes-rt/rt-tests/rt-tests_git.bb
index 2834cabcd4..ef082131e2 100644
--- a/meta/recipes-rt/rt-tests/rt-tests_1.10.bb
+++ b/meta/recipes-rt/rt-tests/rt-tests_git.bb
@@ -1,8 +1,9 @@
1SUMMARY = "Real-Time preemption testcases" 1SUMMARY = "Real-Time preemption testcases"
2HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" 2HOMEPAGE = "https://wiki.linuxfoundation.org/realtime/documentation/start"
3DESCRIPTION = "The main aim of the PREEMPT_RT patch is to minimize the amount of kernel code that is non-preemptible Therefore several substitution mechanisms and new mechanisms are implemented."
3SECTION = "tests" 4SECTION = "tests"
4DEPENDS = "linux-libc-headers virtual/libc numactl" 5DEPENDS = "linux-libc-headers virtual/libc numactl"
5LICENSE = "GPLv2 & GPLv2+" 6LICENSE = "GPL-2.0-only & GPL-2.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 7LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7 8
8require rt-tests.inc 9require rt-tests.inc
@@ -15,7 +16,7 @@ SRC_URI += " \
15 " 16 "
16 17
17# rt-tests needs PI mutex support in libc 18# rt-tests needs PI mutex support in libc
18COMPATIBLE_HOST_libc-musl = 'null' 19COMPATIBLE_HOST:libc-musl = 'null'
19 20
20# Do not install hwlatdetect 21# Do not install hwlatdetect
21EXTRA_OEMAKE += "PYLIB=''" 22EXTRA_OEMAKE += "PYLIB=''"
@@ -29,7 +30,7 @@ do_install_ptest() {
29 cp ${WORKDIR}/rt_bmark.py ${D}${PTEST_PATH} 30 cp ${WORKDIR}/rt_bmark.py ${D}${PTEST_PATH}
30} 31}
31 32
32RDEPENDS_${PN}-ptest += " stress-ng python3 python3-multiprocessing python3-datetime python3-misc" 33RDEPENDS:${PN}-ptest += " stress-ng python3 python3-multiprocessing python3-datetime python3-misc"
33 34
34FILES_${PN} += "${prefix}/src/backfire" 35FILES:${PN} += "${prefix}/src/backfire"
35RDEPENDS_${PN} += "bash" 36RDEPENDS:${PN} += "bash"