Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images
@ 2012-09-12  4:17 Darren Hart
  2012-09-12  4:17 ` [PATCH 1/3] rt-tests: Update to 0.84, use the kernel.org git repository Darren Hart
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Darren Hart @ 2012-09-12  4:17 UTC (permalink / raw)
  To: openembedded-core, Saul Wold

These changes have been tested on the meta-intel sys940x BSP. cyclictest and
hwlatdetect run successfully.

The following changes since commit 48169c6bc44c546cecaa06207b6c36da558b81f7:

  classes/packageinfo: use better method to check if package exists (2012-09-10 21:52:37 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/user-contrib/dvhart/oe-core dvhart/rt-tests
  http://git.yoctoproject.org/cgit.cgi/user-contrib/dvhart/oe-core/log/?h=dvhart/rt-tests

Darren Hart (3):
  rt-tests: Update to 0.84, use the kernel.org git repository
  rt-tests: Add hwlatdetect package
  rt: Add hwlatdetect to rt images

 meta/recipes-rt/images/core-image-rt-sdk.bb        |  2 +-
 meta/recipes-rt/images/core-image-rt.bb            |  2 +-
 ...1-rt-tests-Allow-for-user-specified-PYLIB.patch | 35 +++++++++
 ...02-rt-tests-Break-out-install_hwlatdetect.patch | 68 +++++++++++++++++
 meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb       | 24 ++++++
 .../makefile-support-user-cflags-ldflags.patch     | 89 ----------------------
 meta/recipes-rt/rt-tests/rt-tests.inc              | 18 +++++
 .../{rt-tests_0.83.bb => rt-tests_0.84.bb}         | 18 +----
 8 files changed, 151 insertions(+), 105 deletions(-)
 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/hwlatdetect_0.84.bb
 delete mode 100644 meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
 create mode 100644 meta/recipes-rt/rt-tests/rt-tests.inc
 rename meta/recipes-rt/rt-tests/{rt-tests_0.83.bb => rt-tests_0.84.bb} (61%)

-- 
1.7.11.4




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] rt-tests: Update to 0.84, use the kernel.org git repository
  2012-09-12  4:17 [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Darren Hart
@ 2012-09-12  4:17 ` Darren Hart
  2012-09-12  4:17 ` [PATCH 2/3] rt-tests: Add hwlatdetect package Darren Hart
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Darren Hart @ 2012-09-12  4:17 UTC (permalink / raw)
  To: openembedded-core, Saul Wold

The maintainer of rt-tests has recreated the git repository on kernel.org and
has stated that kernel.org is now the official source for rt-tests.

Update to 0.84. Remove the user cflags and ldflags patch as it is
included in the 0.84 release.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 .../makefile-support-user-cflags-ldflags.patch     | 89 ----------------------
 .../{rt-tests_0.83.bb => rt-tests_0.84.bb}         | 11 +--
 2 files changed, 4 insertions(+), 96 deletions(-)
 delete mode 100644 meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
 rename meta/recipes-rt/rt-tests/{rt-tests_0.83.bb => rt-tests_0.84.bb} (79%)

diff --git a/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch b/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
deleted file mode 100644
index 09a5d7b..0000000
--- a/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From: Darren Hart <dvhart@linux.intel.com>
-Subject: [PATCH rt-tests RFC 4/6] Makefile: Support user supplied CFLAGS and LDFLAGS
-Date: Thu, 22 Mar 2012 02:14:04 +0100
-
-Accept user supplied CFLAGS and LDFLAGS, overwriting the
-Makefile supplied versions. This can cause the build to
-fail if the user does not provide at least what the Makefile
-defines, but so be it.
-
-Upstream-Status: Submitted [linux-rt-users@vger.kernel.org]
-
-Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-CC: Clark Williams <williams@redhat.com>
-CC: John Kacur <jkacur@redhat.com>
-CC: Denys Dmytriyenko <denis@denix.org>
-Signed-off-by: John Kacur <jkacur@redhat.com>
----
- Makefile |   25 +++++++++++++------------
- 1 files changed, 13 insertions(+), 12 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 4038dcc..e1edf6c 100644
---- a/Makefile
-+++ b/Makefile
-@@ -20,7 +20,8 @@ ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
- NUMA 	:= 1
- endif
- 
--CFLAGS = -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
-+CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
-+LDFLAGS ?=
- 
- PYLIB  := $(shell python -c 'import distutils.sysconfig;  print distutils.sysconfig.get_python_lib()')
- 
-@@ -61,41 +62,41 @@ all: $(TARGETS) hwlatdetect
- -include $(sources:.c=.d)
- 
- cyclictest: cyclictest.o rt-utils.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS)
- 
- signaltest: signaltest.o rt-utils.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
- 
- pi_stress: pi_stress.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+	$(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
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
- 
- ptsematest: ptsematest.o rt-utils.o rt-get_cpu.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
- 
- sigwaittest: sigwaittest.o rt-utils.o rt-get_cpu.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
- 
- svsematest: svsematest.o rt-utils.o rt-get_cpu.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
- 
- pmqtest: pmqtest.o rt-utils.o rt-get_cpu.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
- 
- sendme: sendme.o rt-utils.o rt-get_cpu.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
- 
- pip_stress: pip_stress.o error.o rt-utils.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
- 
- hackbench: hackbench.o
--	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
- 
- CLEANUP  = $(TARGETS) *.o .depend *.*~ *.orig *.rej rt-tests.spec *.d
- CLEANUP += $(if $(wildcard .git), ChangeLog)
--- 
-1.7.7.6
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb b/meta/recipes-rt/rt-tests/rt-tests_0.84.bb
similarity index 79%
rename from meta/recipes-rt/rt-tests/rt-tests_0.83.bb
rename to meta/recipes-rt/rt-tests/rt-tests_0.84.bb
index 6c4931e..c54936e 100644
--- a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
+++ b/meta/recipes-rt/rt-tests/rt-tests_0.84.bb
@@ -6,15 +6,12 @@ LICENSE = "GPLv2 & GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \
                     file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949"
-# Version v0.83
-SRCREV = "5f1e84f8b015df3ff950056494134eca3f640d70"
+# Version v0.84
+SRCREV = "857cdd5320ce1f293f5dbcbec79cc8fe22b0bebf"
 
-# git -> 0.83 needs a PE bump
-PE = "1"
-PR = "r2"
+PR = "r0"
 
-SRC_URI = "git://github.com/clrkwllms/rt-tests.git \
-           file://makefile-support-user-cflags-ldflags.patch"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git"
 
 S = "${WORKDIR}/git"
 
-- 
1.7.11.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] rt-tests: Add hwlatdetect package
  2012-09-12  4:17 [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Darren Hart
  2012-09-12  4:17 ` [PATCH 1/3] rt-tests: Update to 0.84, use the kernel.org git repository Darren Hart
@ 2012-09-12  4:17 ` Darren Hart
  2012-09-12  4:17 ` [PATCH 3/3] rt: Add hwlatdetect to rt images Darren Hart
  2012-09-12 17:54 ` [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Saul Wold
  3 siblings, 0 replies; 5+ messages in thread
From: Darren Hart @ 2012-09-12  4:17 UTC (permalink / raw)
  To: openembedded-core, Saul Wold

Split out rt-tests into rt-tests and hwlatdetect packages as the latter
requires python and we want to be able to install the core rt-tests on
minimal systems without python.

This also addresses QA warnings about the hwlatdetect files not being
packaged.

Add an RRECOMMENDS on the hwlat kernel module package for the new
hwlatdetect package as the python test requires the kernel module to
function properly (but we probably don't want to kill a build if the
exact kernel module package is not available).

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 ...1-rt-tests-Allow-for-user-specified-PYLIB.patch | 35 +++++++++++
 ...02-rt-tests-Break-out-install_hwlatdetect.patch | 68 ++++++++++++++++++++++
 meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb       | 24 ++++++++
 meta/recipes-rt/rt-tests/rt-tests.inc              | 18 ++++++
 meta/recipes-rt/rt-tests/rt-tests_0.84.bb          | 15 ++---
 5 files changed, 149 insertions(+), 11 deletions(-)
 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/hwlatdetect_0.84.bb
 create mode 100644 meta/recipes-rt/rt-tests/rt-tests.inc

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 0000000..8b493eb
--- /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 <dvhart@linux.intel.com>
+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 <dvhart@linux.intel.com>
+CC: Clark Williams <williams@redhat.com>
+CC: John Kacur <jkacur@redhat.com>
+---
+ 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 0000000..bc6136f
--- /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: <af93e580d005a2bba6ed36528003af4cf631adb8.1347419597.git.dvhart@linux.intel.com>
+In-Reply-To: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com>
+References: <66765522b634952346f1a3ab7d00c7222a1f9361.1347419597.git.dvhart@linux.intel.com>
+From: Darren Hart <dvhart@linux.intel.com>
+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 <dvhart@linux.intel.com>
+CC: Clark Williams <williams@redhat.com>
+CC: John Kacur <jkacur@redhat.com>
+---
+ 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/hwlatdetect_0.84.bb b/meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb
new file mode 100644
index 0000000..a850a2d
--- /dev/null
+++ b/meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb
@@ -0,0 +1,24 @@
+pickDESCRIPTION = "Python hardware latency detector"
+HOMEPAGE = "http://git.kernel.org/?p=linux/kernel/git/clrkwllms/rt-tests.git"
+SECTION = "tests"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+RDEPENDS = "python python-subprocess python-textutils"
+RRECOMMENDS_${PN} = "kernel-module-hwlat-detector"
+
+require rt-tests.inc
+
+PR = "${INC_PR}.0"
+
+EXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages"
+
+do_compile() {
+	oe_runmake hwlatdetect
+}
+
+do_install() {
+        oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \
+	           MANDIR=${mandir} INCLUDEDIR=${includedir}
+}
+
+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 0000000..f511532
--- /dev/null
+++ b/meta/recipes-rt/rt-tests/rt-tests.inc
@@ -0,0 +1,18 @@
+# Version v0.84
+SRCREV = "857cdd5320ce1f293f5dbcbec79cc8fe22b0bebf"
+
+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"
+
+INC_PR = "r0"
+
+S = "${WORKDIR}/git"
+
+# need to append rt-tests' default CFLAGS to ours
+CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnulli"
+
+# calling 'uname -m' is broken on crossbuilds
+EXTRA_OEMAKE = "NUMA=0"
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.84.bb b/meta/recipes-rt/rt-tests/rt-tests_0.84.bb
index c54936e..c3964d2 100644
--- a/meta/recipes-rt/rt-tests/rt-tests_0.84.bb
+++ b/meta/recipes-rt/rt-tests/rt-tests_0.84.bb
@@ -6,20 +6,13 @@ LICENSE = "GPLv2 & GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \
                     file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949"
-# Version v0.84
-SRCREV = "857cdd5320ce1f293f5dbcbec79cc8fe22b0bebf"
 
-PR = "r0"
+require rt-tests.inc
 
-SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git"
+PR = "${INC_PR}.0"
 
-S = "${WORKDIR}/git"
-
-# need to append rt-tests' default CFLAGS to ours
-CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnulli"
-
-# calling 'uname -m' is broken on crossbuilds
-EXTRA_OEMAKE = "NUMA=0"
+# Do not install hwlatdetect
+EXTRA_OEMAKE += "PYLIB=''"
 
 do_install() {
         oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \
-- 
1.7.11.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] rt: Add hwlatdetect to rt images
  2012-09-12  4:17 [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Darren Hart
  2012-09-12  4:17 ` [PATCH 1/3] rt-tests: Update to 0.84, use the kernel.org git repository Darren Hart
  2012-09-12  4:17 ` [PATCH 2/3] rt-tests: Add hwlatdetect package Darren Hart
@ 2012-09-12  4:17 ` Darren Hart
  2012-09-12 17:54 ` [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Saul Wold
  3 siblings, 0 replies; 5+ messages in thread
From: Darren Hart @ 2012-09-12  4:17 UTC (permalink / raw)
  To: openembedded-core, Saul Wold

This adds the newly separated hwlatdetect package to the rt images.
While this pulls in a python dependency, it is worth have hwlatdetect
installed by default on these images as they are intended to assist in
the evaluation of platforms for use in real-time environments.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta/recipes-rt/images/core-image-rt-sdk.bb | 2 +-
 meta/recipes-rt/images/core-image-rt.bb     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-rt/images/core-image-rt-sdk.bb b/meta/recipes-rt/images/core-image-rt-sdk.bb
index d3bf3e9..58f983f 100644
--- a/meta/recipes-rt/images/core-image-rt-sdk.bb
+++ b/meta/recipes-rt/images/core-image-rt-sdk.bb
@@ -7,6 +7,6 @@ DEPENDS = "linux-yocto-rt"
 
 IMAGE_FEATURES += "dev-pkgs tools-sdk tools-debug tools-profile tools-testapps debug-tweaks"
 
-IMAGE_INSTALL += "rt-tests kernel-dev"
+IMAGE_INSTALL += "rt-tests hwlatdetect kernel-dev"
 
 LICENSE = "MIT"
diff --git a/meta/recipes-rt/images/core-image-rt.bb b/meta/recipes-rt/images/core-image-rt.bb
index f749bfe..cab6f8b 100644
--- a/meta/recipes-rt/images/core-image-rt.bb
+++ b/meta/recipes-rt/images/core-image-rt.bb
@@ -4,6 +4,6 @@ DESCRIPTION = "A small image just capable of allowing a device to boot plus a \
 real-time test suite and tools appropriate for real-time use."
 DEPENDS = "linux-yocto-rt"
 
-IMAGE_INSTALL += "rt-tests"
+IMAGE_INSTALL += "rt-tests hwlatdetect"
 
 LICENSE = "MIT"
-- 
1.7.11.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images
  2012-09-12  4:17 [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Darren Hart
                   ` (2 preceding siblings ...)
  2012-09-12  4:17 ` [PATCH 3/3] rt: Add hwlatdetect to rt images Darren Hart
@ 2012-09-12 17:54 ` Saul Wold
  3 siblings, 0 replies; 5+ messages in thread
From: Saul Wold @ 2012-09-12 17:54 UTC (permalink / raw)
  To: Darren Hart; +Cc: openembedded-core

On 09/11/2012 09:17 PM, Darren Hart wrote:
> These changes have been tested on the meta-intel sys940x BSP. cyclictest and
> hwlatdetect run successfully.
>
> The following changes since commit 48169c6bc44c546cecaa06207b6c36da558b81f7:
>
>    classes/packageinfo: use better method to check if package exists (2012-09-10 21:52:37 +0100)
>
> are available in the git repository at:
>
>    git://git.yoctoproject.org/user-contrib/dvhart/oe-core dvhart/rt-tests
>    http://git.yoctoproject.org/cgit.cgi/user-contrib/dvhart/oe-core/log/?h=dvhart/rt-tests
>
> Darren Hart (3):
>    rt-tests: Update to 0.84, use the kernel.org git repository
>    rt-tests: Add hwlatdetect package
>    rt: Add hwlatdetect to rt images
>
>   meta/recipes-rt/images/core-image-rt-sdk.bb        |  2 +-
>   meta/recipes-rt/images/core-image-rt.bb            |  2 +-
>   ...1-rt-tests-Allow-for-user-specified-PYLIB.patch | 35 +++++++++
>   ...02-rt-tests-Break-out-install_hwlatdetect.patch | 68 +++++++++++++++++
>   meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb       | 24 ++++++
>   .../makefile-support-user-cflags-ldflags.patch     | 89 ----------------------
>   meta/recipes-rt/rt-tests/rt-tests.inc              | 18 +++++
>   .../{rt-tests_0.83.bb => rt-tests_0.84.bb}         | 18 +----
>   8 files changed, 151 insertions(+), 105 deletions(-)
>   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/hwlatdetect_0.84.bb
>   delete mode 100644 meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
>   create mode 100644 meta/recipes-rt/rt-tests/rt-tests.inc
>   rename meta/recipes-rt/rt-tests/{rt-tests_0.83.bb => rt-tests_0.84.bb} (61%)
>
Merged into OE-Core

Thanks
	Sau!




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-12 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12  4:17 [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Darren Hart
2012-09-12  4:17 ` [PATCH 1/3] rt-tests: Update to 0.84, use the kernel.org git repository Darren Hart
2012-09-12  4:17 ` [PATCH 2/3] rt-tests: Add hwlatdetect package Darren Hart
2012-09-12  4:17 ` [PATCH 3/3] rt: Add hwlatdetect to rt images Darren Hart
2012-09-12 17:54 ` [PATCH 0/3] recipes-rt: Update rt-tests, hwlatdetect, and core-image-rt images Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox