From b3155c8393e208826c2da4a6d4a8e09fb996fcb9 Mon Sep 17 00:00:00 2001 From: Darren Hart Date: Tue, 11 Sep 2012 21:17:06 -0700 Subject: rt-tests: Add hwlatdetect package 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). (From OE-Core rev: 0ea5e5a805e038ecfeb6b87ca05c021c5f72c5e9) Signed-off-by: Darren Hart Signed-off-by: Richard Purdie --- meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb (limited to 'meta/recipes-rt/rt-tests/hwlatdetect_0.84.bb') 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 0000000000..a850a2d42a --- /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" -- cgit v1.2.3-54-g00ecf