[OE-core] [PATCH] rt-tests: add missing build dependencies

Ross Burton ross.burton at intel.com
Fri Dec 7 12:02:24 UTC 2012


hackbench links to but doesn't depend on librttest.a, so parallel builds can
randomly fail.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 ...d-missing-build-dependencies-to-hackbench.patch |   32 ++++++++++++++++++++
 meta/recipes-rt/rt-tests/rt-tests.inc              |    5 +--
 2 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-rt/rt-tests/files/0001-Add-missing-build-dependencies-to-hackbench.patch

diff --git a/meta/recipes-rt/rt-tests/files/0001-Add-missing-build-dependencies-to-hackbench.patch b/meta/recipes-rt/rt-tests/files/0001-Add-missing-build-dependencies-to-hackbench.patch
new file mode 100644
index 0000000..c4d221d
--- /dev/null
+++ b/meta/recipes-rt/rt-tests/files/0001-Add-missing-build-dependencies-to-hackbench.patch
@@ -0,0 +1,32 @@
+Upstream-Status: Submitted [email]
+Signed-off-by: Ross Burton <ross.burton at intel.com>
+
+From 640aea5bd51ea380d299df16cb90b290a0b54ac9 Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton at intel.com>
+Date: Fri, 7 Dec 2012 11:58:12 +0000
+Subject: [PATCH] Add missing build dependencies to hackbench
+
+hackbench links to librttest.a but doesn't depend on it, so building it
+explicitly or in parallel builds this can fail.
+
+Signed-off-by: Ross Burton <ross.burton at intel.com>
+---
+ Makefile |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index fd3cdb3..95030d9 100644
+--- a/Makefile
++++ b/Makefile
+@@ -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.10
+
diff --git a/meta/recipes-rt/rt-tests/rt-tests.inc b/meta/recipes-rt/rt-tests/rt-tests.inc
index 6a699fc..9cc1638 100644
--- a/meta/recipes-rt/rt-tests/rt-tests.inc
+++ b/meta/recipes-rt/rt-tests/rt-tests.inc
@@ -5,9 +5,10 @@ PR = "r0"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git \
            file://0001-rt-tests-Allow-for-user-specified-PYLIB.patch \
-           file://0002-rt-tests-Break-out-install_hwlatdetect.patch"
+           file://0002-rt-tests-Break-out-install_hwlatdetect.patch \
+           file://0001-Add-missing-build-dependencies-to-hackbench.patch"
 
-INC_PR = "r0"
+INC_PR = "r1"
 
 S = "${WORKDIR}/git"
 
-- 
1.7.10





More information about the Openembedded-core mailing list