diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
| commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
| tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-rt | |
| download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz | |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-rt')
11 files changed, 358 insertions, 0 deletions
diff --git a/meta/recipes-rt/README b/meta/recipes-rt/README new file mode 100644 index 0000000000..7d7558de49 --- /dev/null +++ b/meta/recipes-rt/README | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | The recipes-rt recipes provide package and image recipes for using and testing | ||
| 2 | the PREEMPT_RT kernel. The core-image-rt*.bb images are minimal images with | ||
| 3 | a couple extra packages, including rt-tests. In order to build the image with | ||
| 4 | the linux-yocto-rt kernel, be sure to include the following line in your | ||
| 5 | local.conf, bblayers.conf, or your $MACHINE.conf. | ||
| 6 | |||
| 7 | PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt" | ||
| 8 | |||
| 9 | If you are creating a new BSP which should use linux-yocto-rt by default, | ||
| 10 | use the line above in the $MACHINE.conf in your BSP layer, and specify the | ||
| 11 | following in a linux-yocto-rt bbappend recipe: | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE_$MACHINE = $MACHINE | ||
diff --git a/meta/recipes-rt/images/core-image-rt-sdk.bb b/meta/recipes-rt/images/core-image-rt-sdk.bb new file mode 100644 index 0000000000..db7d581832 --- /dev/null +++ b/meta/recipes-rt/images/core-image-rt-sdk.bb | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | require recipes-core/images/core-image-minimal.bb | ||
| 2 | |||
| 3 | DESCRIPTION = "Small image capable of booting a device with a test suite and \ | ||
| 4 | tools for real-time use. It includes the full meta-toolchain, development \ | ||
| 5 | headers and libraries to form a standalone SDK." | ||
| 6 | DEPENDS = "linux-yocto-rt" | ||
| 7 | |||
| 8 | IMAGE_FEATURES += "dev-pkgs tools-sdk tools-debug eclipse-debug tools-profile tools-testapps debug-tweaks" | ||
| 9 | |||
| 10 | IMAGE_INSTALL += "rt-tests hwlatdetect kernel-dev" | ||
| 11 | |||
| 12 | LICENSE = "MIT" | ||
diff --git a/meta/recipes-rt/images/core-image-rt.bb b/meta/recipes-rt/images/core-image-rt.bb new file mode 100644 index 0000000000..cab6f8b749 --- /dev/null +++ b/meta/recipes-rt/images/core-image-rt.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require recipes-core/images/core-image-minimal.bb | ||
| 2 | |||
| 3 | DESCRIPTION = "A small image just capable of allowing a device to boot plus a \ | ||
| 4 | real-time test suite and tools appropriate for real-time use." | ||
| 5 | DEPENDS = "linux-yocto-rt" | ||
| 6 | |||
| 7 | IMAGE_INSTALL += "rt-tests hwlatdetect" | ||
| 8 | |||
| 9 | LICENSE = "MIT" | ||
diff --git a/meta/recipes-rt/rt-tests/files/0001-rt-tests-Allow-for-user-specified-PYLIB.patch b/meta/recipes-rt/rt-tests/files/0001-rt-tests-Allow-for-user-specified-PYLIB.patch new file mode 100644 index 0000000000..8b493eb1f1 --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/0001-rt-tests-Allow-for-user-specified-PYLIB.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 66765522b634952346f1a3ab7d00c7222a1f9361 Mon Sep 17 00:00:00 2001 | ||
| 2 | Message-Id: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> | ||
| 3 | From: Darren Hart <dvhart@linux.intel.com> | ||
| 4 | Date: Tue, 11 Sep 2012 15:19:30 -0700 | ||
| 5 | Subject: [PATCH 1/2] rt-tests: Allow for user-specified PYLIB | ||
| 6 | |||
| 7 | Upstream-Status: Submitted | ||
| 8 | |||
| 9 | Allow users (build systems) to specify PYLIB. This allows for a | ||
| 10 | cross-build-system to specify the target PYLIB rather than the host | ||
| 11 | PYLIB. | ||
| 12 | |||
| 13 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
| 14 | CC: Clark Williams <williams@redhat.com> | ||
| 15 | CC: John Kacur <jkacur@redhat.com> | ||
| 16 | --- | ||
| 17 | Makefile | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/Makefile b/Makefile | ||
| 21 | index 3a82407..61e2f9f 100644 | ||
| 22 | --- a/Makefile | ||
| 23 | +++ b/Makefile | ||
| 24 | @@ -23,7 +23,7 @@ endif | ||
| 25 | CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include | ||
| 26 | LDFLAGS ?= | ||
| 27 | |||
| 28 | -PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') | ||
| 29 | +PYLIB ?= $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') | ||
| 30 | |||
| 31 | ifndef DEBUG | ||
| 32 | CFLAGS += -O2 | ||
| 33 | -- | ||
| 34 | 1.7.11.4 | ||
| 35 | |||
diff --git a/meta/recipes-rt/rt-tests/files/0002-rt-tests-Break-out-install_hwlatdetect.patch b/meta/recipes-rt/rt-tests/files/0002-rt-tests-Break-out-install_hwlatdetect.patch new file mode 100644 index 0000000000..bc6136f1de --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/0002-rt-tests-Break-out-install_hwlatdetect.patch | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | From af93e580d005a2bba6ed36528003af4cf631adb8 Mon Sep 17 00:00:00 2001 | ||
| 2 | Message-Id: <af93e580d005a2bba6ed36528003af4cf631adb8.1347419597.git.dvhart@linux.intel.com> | ||
| 3 | In-Reply-To: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> | ||
| 4 | References: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> | ||
| 5 | From: Darren Hart <dvhart@linux.intel.com> | ||
| 6 | Date: Tue, 11 Sep 2012 14:51:10 -0700 | ||
| 7 | Subject: [PATCH 2/2] rt-tests: Break out install_hwlatdetect | ||
| 8 | |||
| 9 | Upstream-Status: Submitted | ||
| 10 | |||
| 11 | Allow hwlatdetect to be installed independently of the rest of the | ||
| 12 | tests. This is convenient for build systems that package it separately | ||
| 13 | due to the python dependency. | ||
| 14 | |||
| 15 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
| 16 | CC: Clark Williams <williams@redhat.com> | ||
| 17 | CC: John Kacur <jkacur@redhat.com> | ||
| 18 | --- | ||
| 19 | Makefile | 18 +++++++++++------- | ||
| 20 | 1 file changed, 11 insertions(+), 7 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/Makefile b/Makefile | ||
| 23 | index 61e2f9f..636e63b 100644 | ||
| 24 | --- a/Makefile | ||
| 25 | +++ b/Makefile | ||
| 26 | @@ -119,21 +119,15 @@ changelog: | ||
| 27 | git log >ChangeLog | ||
| 28 | |||
| 29 | .PHONY: install | ||
| 30 | -install: all | ||
| 31 | +install: all install_hwlatdetect | ||
| 32 | mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man4" | ||
| 33 | mkdir -p "$(DESTDIR)$(srcdir)" "$(DESTDIR)$(mandir)/man8" | ||
| 34 | cp $(TARGETS) "$(DESTDIR)$(bindir)" | ||
| 35 | - if test -n "$(PYLIB)" ; then \ | ||
| 36 | - install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ | ||
| 37 | - rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
| 38 | - ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
| 39 | - fi | ||
| 40 | install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" | ||
| 41 | install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile" | ||
| 42 | gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" | ||
| 43 | gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" | ||
| 44 | gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" | ||
| 45 | - gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" | ||
| 46 | gzip src/ptsematest/ptsematest.8 -c >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" | ||
| 47 | gzip src/sigwaittest/sigwaittest.8 -c >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" | ||
| 48 | gzip src/svsematest/svsematest.8 -c >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" | ||
| 49 | @@ -141,6 +135,16 @@ install: all | ||
| 50 | gzip src/backfire/sendme.8 -c >"$(DESTDIR)$(mandir)/man8/sendme.8.gz" | ||
| 51 | gzip src/hackbench/hackbench.8 -c >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" | ||
| 52 | |||
| 53 | +.PHONY: install_hwlatdetect | ||
| 54 | +install_hwlatdetect: hwlatdetect | ||
| 55 | + if test -n "$(PYLIB)" ; then \ | ||
| 56 | + mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8" ; \ | ||
| 57 | + install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ | ||
| 58 | + rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
| 59 | + ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
| 60 | + gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ | ||
| 61 | + fi | ||
| 62 | + | ||
| 63 | .PHONY: release | ||
| 64 | release: clean changelog | ||
| 65 | mkdir -p releases | ||
| 66 | -- | ||
| 67 | 1.7.11.4 | ||
| 68 | |||
diff --git a/meta/recipes-rt/rt-tests/files/added-missing-dependencies.patch b/meta/recipes-rt/rt-tests/files/added-missing-dependencies.patch new file mode 100644 index 0000000000..e4202823e3 --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/added-missing-dependencies.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | From 82d28701486ba5a699544a168448bf93b1ccd7b1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
| 3 | Date: Thu, 6 Dec 2012 11:26:14 +0800 | ||
| 4 | Subject: [PATCH] Added missing dependencies | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [linux-rt-users] | ||
| 7 | |||
| 8 | The following targets missed dependency on librttest.a: | ||
| 9 | pi_stress | ||
| 10 | rt-migrate-test | ||
| 11 | hackbench | ||
| 12 | |||
| 13 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
| 14 | --- | ||
| 15 | Makefile | 6 +++--- | ||
| 16 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/Makefile b/Makefile | ||
| 19 | index fd3cdb3..60707a7 100644 | ||
| 20 | --- a/Makefile | ||
| 21 | +++ b/Makefile | ||
| 22 | @@ -68,14 +68,14 @@ cyclictest: cyclictest.o librttest.a | ||
| 23 | signaltest: signaltest.o librttest.a | ||
| 24 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
| 25 | |||
| 26 | -pi_stress: pi_stress.o | ||
| 27 | +pi_stress: pi_stress.o librttest.a | ||
| 28 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
| 29 | |||
| 30 | hwlatdetect: src/hwlatdetect/hwlatdetect.py | ||
| 31 | chmod +x src/hwlatdetect/hwlatdetect.py | ||
| 32 | ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect | ||
| 33 | |||
| 34 | -rt-migrate-test: rt-migrate-test.o | ||
| 35 | +rt-migrate-test: rt-migrate-test.o librttest.a | ||
| 36 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
| 37 | |||
| 38 | ptsematest: ptsematest.o librttest.a | ||
| 39 | @@ -96,7 +96,7 @@ sendme: sendme.o librttest.a | ||
| 40 | pip_stress: pip_stress.o librttest.a | ||
| 41 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
| 42 | |||
| 43 | -hackbench: hackbench.o | ||
| 44 | +hackbench: hackbench.o librttest.a | ||
| 45 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | ||
| 46 | |||
| 47 | librttest.a: rt-utils.o error.o rt-get_cpu.o | ||
| 48 | -- | ||
| 49 | 1.7.9.5 | ||
| 50 | |||
diff --git a/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch b/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch new file mode 100644 index 0000000000..a9cc0e34ef --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | From 8959451a8ec5dc83dcb2dba6701abe8bf419e12c Mon Sep 17 00:00:00 2001 | ||
| 2 | Message-Id: <8959451a8ec5dc83dcb2dba6701abe8bf419e12c.1358783585.git.Jim.Somerville@windriver.com> | ||
| 3 | From: Jim Somerville <Jim.Somerville@windriver.com> | ||
| 4 | Date: Mon, 21 Jan 2013 10:50:18 -0500 | ||
| 5 | Subject: [PATCH 1/1] cyclictest: finish removal of 1 second first loops | ||
| 6 | |||
| 7 | Observation: | ||
| 8 | Huge latencies reported close to 1 second when certain options | ||
| 9 | are used in cyclictest. | ||
| 10 | |||
| 11 | Problem: | ||
| 12 | [ commit da4956cbcaf7945554f30e4d3a9be09b1431b19a | ||
| 13 | use interval on first loop instead of 1 second ] | ||
| 14 | removed the 1 second first timing loop out of the main path | ||
| 15 | in cyclictest but left it in two other paths, namely the ones | ||
| 16 | triggered by these two options: | ||
| 17 | -r --relative use relative timer instead of absolute | ||
| 18 | -s --system use sys_nanosleep and sys_setitimer | ||
| 19 | This causes huge latencies of close to 1 second to be reported | ||
| 20 | by cyclictest with certain uses of those two options. | ||
| 21 | |||
| 22 | Fix: | ||
| 23 | Extend the original commit to remove the 1 second hardcoded | ||
| 24 | timer values from the RELTIME and ITIMER options. Use the | ||
| 25 | the actual interval instead. | ||
| 26 | |||
| 27 | Upstream-Status: Accepted | ||
| 28 | [ https://git.kernel.org/cgit/linux/kernel/git/clrkwllms/rt-tests.git/commit/?h=work&id=1b92da30837e9552aba209cbdf938877f0fd3bbf ] | ||
| 29 | |||
| 30 | Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> | ||
| 31 | --- | ||
| 32 | src/cyclictest/cyclictest.c | 6 ++---- | ||
| 33 | 1 files changed, 2 insertions(+), 4 deletions(-) | ||
| 34 | |||
| 35 | diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c | ||
| 36 | index 11b6cea..8487409 100644 | ||
| 37 | --- a/src/cyclictest/cyclictest.c | ||
| 38 | +++ b/src/cyclictest/cyclictest.c | ||
| 39 | @@ -741,17 +741,15 @@ void *timerthread(void *param) | ||
| 40 | if (par->timermode == TIMER_ABSTIME) | ||
| 41 | tspec.it_value = next; | ||
| 42 | else { | ||
| 43 | - tspec.it_value.tv_nsec = 0; | ||
| 44 | - tspec.it_value.tv_sec = 1; | ||
| 45 | + tspec.it_value = interval; | ||
| 46 | } | ||
| 47 | timer_settime(timer, par->timermode, &tspec, NULL); | ||
| 48 | } | ||
| 49 | |||
| 50 | if (par->mode == MODE_SYS_ITIMER) { | ||
| 51 | - itimer.it_value.tv_sec = 1; | ||
| 52 | - itimer.it_value.tv_usec = 0; | ||
| 53 | itimer.it_interval.tv_sec = interval.tv_sec; | ||
| 54 | itimer.it_interval.tv_usec = interval.tv_nsec / 1000; | ||
| 55 | + itimer.it_value = itimer.it_interval; | ||
| 56 | setitimer (ITIMER_REAL, &itimer, NULL); | ||
| 57 | } | ||
| 58 | |||
| 59 | -- | ||
| 60 | 1.7.4.1 | ||
| 61 | |||
diff --git a/meta/recipes-rt/rt-tests/files/hackbench-fix-error-check.patch b/meta/recipes-rt/rt-tests/files/hackbench-fix-error-check.patch new file mode 100644 index 0000000000..d17fdff455 --- /dev/null +++ b/meta/recipes-rt/rt-tests/files/hackbench-fix-error-check.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | childinfo_t is a union that contains both signed (error) and unsigned | ||
| 2 | (threadid) members. Thus a large threadid could appear as a negative error | ||
| 3 | value, which will cause unexpected failures. | ||
| 4 | |||
| 5 | childinfo_t should be changed to a struct, but it could potentially affect the | ||
| 6 | performance. So we keep it as a union but only check error against -1. There is | ||
| 7 | still a chance of false alarm but it's small. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Song.Li <Song.Li@windriver.com> | ||
| 12 | Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> | ||
| 13 | --- | ||
| 14 | src/hackbench/hackbench.c | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/src/hackbench/hackbench.c b/src/hackbench/hackbench.c | ||
| 18 | index 8baeb23..dc0de8f 100644 | ||
| 19 | --- a/src/hackbench/hackbench.c | ||
| 20 | +++ b/src/hackbench/hackbench.c | ||
| 21 | @@ -317,7 +317,7 @@ static unsigned int group(childinfo_t *child, | ||
| 22 | ctx->wakefd = wakefd; | ||
| 23 | |||
| 24 | child[tab_offset+i] = create_worker(ctx, (void *)(void *)receiver); | ||
| 25 | - if( child[tab_offset+i].error < 0 ) { | ||
| 26 | + if( child[tab_offset+i].error == -1 ) { | ||
| 27 | return (i > 0 ? i-1 : 0); | ||
| 28 | } | ||
| 29 | snd_ctx->out_fds[i] = fds[1]; | ||
| 30 | @@ -332,7 +332,7 @@ static unsigned int group(childinfo_t *child, | ||
| 31 | snd_ctx->num_fds = num_fds; | ||
| 32 | |||
| 33 | child[tab_offset+num_fds+i] = create_worker(snd_ctx, (void *)(void *)sender); | ||
| 34 | - if( child[tab_offset+num_fds+i].error < 0 ) { | ||
| 35 | + if( child[tab_offset+num_fds+i].error == -1 ) { | ||
| 36 | return (num_fds+i)-1; | ||
| 37 | } | ||
| 38 | } | ||
| 39 | -- | ||
| 40 | 1.7.9.5 | ||
| 41 | |||
diff --git a/meta/recipes-rt/rt-tests/hwlatdetect_0.85.bb b/meta/recipes-rt/rt-tests/hwlatdetect_0.85.bb new file mode 100644 index 0000000000..634b609bda --- /dev/null +++ b/meta/recipes-rt/rt-tests/hwlatdetect_0.85.bb | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | SUMMARY = "Hardware latency detector" | ||
| 2 | DESCRIPTION = "Python utility for controlling the kernel hardware latency detection module (hwlat_detector.ko)." | ||
| 3 | HOMEPAGE = "http://git.kernel.org/?p=linux/kernel/git/clrkwllms/rt-tests.git" | ||
| 4 | SECTION = "tests" | ||
| 5 | LICENSE = "GPLv2" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 7 | RDEPENDS_${PN} = "python python-subprocess python-textutils" | ||
| 8 | RRECOMMENDS_${PN} = "kernel-module-hwlat-detector" | ||
| 9 | |||
| 10 | require rt-tests.inc | ||
| 11 | |||
| 12 | PR = "${INC_PR}.0" | ||
| 13 | |||
| 14 | EXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages" | ||
| 15 | |||
| 16 | do_compile() { | ||
| 17 | oe_runmake hwlatdetect | ||
| 18 | } | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \ | ||
| 22 | MANDIR=${mandir} INCLUDEDIR=${includedir} | ||
| 23 | } | ||
| 24 | |||
| 25 | FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py" | ||
diff --git a/meta/recipes-rt/rt-tests/rt-tests.inc b/meta/recipes-rt/rt-tests/rt-tests.inc new file mode 100644 index 0000000000..91e5028eda --- /dev/null +++ b/meta/recipes-rt/rt-tests/rt-tests.inc | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # Version v0.85 | ||
| 2 | SRCREV = "210e625227d21e0b589b8eaa36cd81f1cb981819" | ||
| 3 | |||
| 4 | PR = "r0" | ||
| 5 | |||
| 6 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git \ | ||
| 7 | file://0001-rt-tests-Allow-for-user-specified-PYLIB.patch \ | ||
| 8 | file://0002-rt-tests-Break-out-install_hwlatdetect.patch \ | ||
| 9 | file://added-missing-dependencies.patch \ | ||
| 10 | file://cyclictest-finish-removal-of-1-second-first-loops.patch \ | ||
| 11 | file://hackbench-fix-error-check.patch \ | ||
| 12 | " | ||
| 13 | |||
| 14 | INC_PR = "r2" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | # need to append rt-tests' default CFLAGS to ours | ||
| 19 | CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnulli" | ||
| 20 | |||
| 21 | # calling 'uname -m' is broken on crossbuilds | ||
| 22 | EXTRA_OEMAKE = "NUMA=0" | ||
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.85.bb b/meta/recipes-rt/rt-tests/rt-tests_0.85.bb new file mode 100644 index 0000000000..c3964d2215 --- /dev/null +++ b/meta/recipes-rt/rt-tests/rt-tests_0.85.bb | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | DESCRIPTION = "Real-Time preemption testcases" | ||
| 2 | HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" | ||
| 3 | SECTION = "tests" | ||
| 4 | DEPENDS = "linux-libc-headers virtual/libc" | ||
| 5 | LICENSE = "GPLv2 & GPLv2+" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
| 7 | file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \ | ||
| 8 | file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949" | ||
| 9 | |||
| 10 | require rt-tests.inc | ||
| 11 | |||
| 12 | PR = "${INC_PR}.0" | ||
| 13 | |||
| 14 | # Do not install hwlatdetect | ||
| 15 | EXTRA_OEMAKE += "PYLIB=''" | ||
| 16 | |||
| 17 | do_install() { | ||
| 18 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ | ||
| 19 | INCLUDEDIR=${includedir} | ||
| 20 | } | ||
| 21 | |||
| 22 | FILES_${PN} += "${prefix}/src/backfire" | ||
