xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-rt/rt-tests/hwlatdetect_git.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Hardware latency detector"
2*4882a593SmuzhiyunDESCRIPTION = "Python utility for controlling the kernel hardware latency detection module (hwlat_detector.ko)."
3*4882a593SmuzhiyunHOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest"
4*4882a593SmuzhiyunSECTION = "tests"
5*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunrequire rt-tests.inc
9*4882a593Smuzhiyuninherit python3-dir
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunEXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundo_compile() {
14*4882a593Smuzhiyun	oe_runmake hwlatdetect
15*4882a593Smuzhiyun}
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundo_install() {
18*4882a593Smuzhiyun        oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \
19*4882a593Smuzhiyun	           MANDIR=${mandir} INCLUDEDIR=${includedir}
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun        sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py
22*4882a593Smuzhiyun}
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunFILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py"
25*4882a593SmuzhiyunRDEPENDS:${PN} = "python3-core "
26*4882a593SmuzhiyunRRECOMMENDS:${PN} = "kernel-module-hwlat-detector"
27