summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-02 12:26:06 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:28 +0100
commit7f2ac59d4eccdc4a64fcd30a9a9d835cd4e99c5d (patch)
tree663106678a4f0b6128116bf1641dae625aa3fad6 /meta
parentcaf553b1ac243d8e6d14ab0ba4ad87130c4d9cfe (diff)
downloadpoky-7f2ac59d4eccdc4a64fcd30a9a9d835cd4e99c5d.tar.gz
hwlatdetect: move to Python 3
(From OE-Core rev: 4aa0d34155834e2e1ef7972c5dd6490a6f0c49e8) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb b/meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb
index 025eb63232..012b2dd0a7 100644
--- a/meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb
+++ b/meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb
@@ -6,7 +6,7 @@ LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7 7
8require rt-tests.inc 8require rt-tests.inc
9inherit python-dir 9inherit python3-dir
10 10
11EXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages" 11EXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages"
12 12
@@ -17,8 +17,10 @@ do_compile() {
17do_install() { 17do_install() {
18 oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \ 18 oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \
19 MANDIR=${mandir} INCLUDEDIR=${includedir} 19 MANDIR=${mandir} INCLUDEDIR=${includedir}
20
21 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py
20} 22}
21 23
22FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py" 24FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py"
23RDEPENDS_${PN} = "python python-subprocess python-textutils" 25RDEPENDS_${PN} = "python3 python3-subprocess python3-textutils"
24RRECOMMENDS_${PN} = "kernel-module-hwlat-detector" 26RRECOMMENDS_${PN} = "kernel-module-hwlat-detector"