From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- ...1-rt-tests-Allow-for-user-specified-PYLIB.patch | 35 +++++++++++ ...02-rt-tests-Break-out-install_hwlatdetect.patch | 68 ++++++++++++++++++++++ .../files/added-missing-dependencies.patch | 50 ++++++++++++++++ .../rt-tests/files/hackbench-fix-error-check.patch | 41 +++++++++++++ 4 files changed, 194 insertions(+) create mode 100644 meta/recipes-rt/rt-tests/files/0001-rt-tests-Allow-for-user-specified-PYLIB.patch create mode 100644 meta/recipes-rt/rt-tests/files/0002-rt-tests-Break-out-install_hwlatdetect.patch create mode 100644 meta/recipes-rt/rt-tests/files/added-missing-dependencies.patch create mode 100644 meta/recipes-rt/rt-tests/files/hackbench-fix-error-check.patch (limited to 'meta/recipes-rt/rt-tests/files') 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 @@ +From 66765522b634952346f1a3ab7d00c7222a1f9361 Mon Sep 17 00:00:00 2001 +Message-Id: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> +From: Darren Hart +Date: Tue, 11 Sep 2012 15:19:30 -0700 +Subject: [PATCH 1/2] rt-tests: Allow for user-specified PYLIB + +Upstream-Status: Submitted + +Allow users (build systems) to specify PYLIB. This allows for a +cross-build-system to specify the target PYLIB rather than the host +PYLIB. + +Signed-off-by: Darren Hart +CC: Clark Williams +CC: John Kacur +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 3a82407..61e2f9f 100644 +--- a/Makefile ++++ b/Makefile +@@ -23,7 +23,7 @@ endif + CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include + LDFLAGS ?= + +-PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') ++PYLIB ?= $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') + + ifndef DEBUG + CFLAGS += -O2 +-- +1.7.11.4 + 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 @@ +From af93e580d005a2bba6ed36528003af4cf631adb8 Mon Sep 17 00:00:00 2001 +Message-Id: +In-Reply-To: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> +References: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com> +From: Darren Hart +Date: Tue, 11 Sep 2012 14:51:10 -0700 +Subject: [PATCH 2/2] rt-tests: Break out install_hwlatdetect + +Upstream-Status: Submitted + +Allow hwlatdetect to be installed independently of the rest of the +tests. This is convenient for build systems that package it separately +due to the python dependency. + +Signed-off-by: Darren Hart +CC: Clark Williams +CC: John Kacur +--- + Makefile | 18 +++++++++++------- + 1 file changed, 11 insertions(+), 7 deletions(-) + +diff --git a/Makefile b/Makefile +index 61e2f9f..636e63b 100644 +--- a/Makefile ++++ b/Makefile +@@ -119,21 +119,15 @@ changelog: + git log >ChangeLog + + .PHONY: install +-install: all ++install: all install_hwlatdetect + mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man4" + mkdir -p "$(DESTDIR)$(srcdir)" "$(DESTDIR)$(mandir)/man8" + cp $(TARGETS) "$(DESTDIR)$(bindir)" +- if test -n "$(PYLIB)" ; then \ +- install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ +- rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ +- ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ +- fi + install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" + install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile" + gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" + gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" + gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" +- gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" + gzip src/ptsematest/ptsematest.8 -c >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" + gzip src/sigwaittest/sigwaittest.8 -c >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" + gzip src/svsematest/svsematest.8 -c >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" +@@ -141,6 +135,16 @@ install: all + gzip src/backfire/sendme.8 -c >"$(DESTDIR)$(mandir)/man8/sendme.8.gz" + gzip src/hackbench/hackbench.8 -c >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" + ++.PHONY: install_hwlatdetect ++install_hwlatdetect: hwlatdetect ++ if test -n "$(PYLIB)" ; then \ ++ mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8" ; \ ++ install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ ++ rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ ++ ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ ++ gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ ++ fi ++ + .PHONY: release + release: clean changelog + mkdir -p releases +-- +1.7.11.4 + 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 @@ +From 82d28701486ba5a699544a168448bf93b1ccd7b1 Mon Sep 17 00:00:00 2001 +From: Jackie Huang +Date: Thu, 6 Dec 2012 11:26:14 +0800 +Subject: [PATCH] Added missing dependencies + +Upstream-Status: Submitted [linux-rt-users] + +The following targets missed dependency on librttest.a: +pi_stress +rt-migrate-test +hackbench + +Signed-off-by: Jackie Huang +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index fd3cdb3..60707a7 100644 +--- a/Makefile ++++ b/Makefile +@@ -68,14 +68,14 @@ cyclictest: cyclictest.o librttest.a + signaltest: signaltest.o librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + +-pi_stress: pi_stress.o ++pi_stress: pi_stress.o librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + hwlatdetect: src/hwlatdetect/hwlatdetect.py + chmod +x src/hwlatdetect/hwlatdetect.py + ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect + +-rt-migrate-test: rt-migrate-test.o ++rt-migrate-test: rt-migrate-test.o librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + ptsematest: ptsematest.o librttest.a +@@ -96,7 +96,7 @@ sendme: sendme.o librttest.a + pip_stress: pip_stress.o librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + +-hackbench: hackbench.o ++hackbench: hackbench.o librttest.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + librttest.a: rt-utils.o error.o rt-get_cpu.o +-- +1.7.9.5 + 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 @@ +childinfo_t is a union that contains both signed (error) and unsigned +(threadid) members. Thus a large threadid could appear as a negative error +value, which will cause unexpected failures. + +childinfo_t should be changed to a struct, but it could potentially affect the +performance. So we keep it as a union but only check error against -1. There is +still a chance of false alarm but it's small. + +Upstream-Status: Pending + +Signed-off-by: Song.Li +Signed-off-by: Jesse Zhang +--- + src/hackbench/hackbench.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/hackbench/hackbench.c b/src/hackbench/hackbench.c +index 8baeb23..dc0de8f 100644 +--- a/src/hackbench/hackbench.c ++++ b/src/hackbench/hackbench.c +@@ -317,7 +317,7 @@ static unsigned int group(childinfo_t *child, + ctx->wakefd = wakefd; + + child[tab_offset+i] = create_worker(ctx, (void *)(void *)receiver); +- if( child[tab_offset+i].error < 0 ) { ++ if( child[tab_offset+i].error == -1 ) { + return (i > 0 ? i-1 : 0); + } + snd_ctx->out_fds[i] = fds[1]; +@@ -332,7 +332,7 @@ static unsigned int group(childinfo_t *child, + snd_ctx->num_fds = num_fds; + + child[tab_offset+num_fds+i] = create_worker(snd_ctx, (void *)(void *)sender); +- if( child[tab_offset+num_fds+i].error < 0 ) { ++ if( child[tab_offset+num_fds+i].error == -1 ) { + return (num_fds+i)-1; + } + } +-- +1.7.9.5 + -- cgit v1.2.3-54-g00ecf