rt-tests_git.bb 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. SUMMARY = "Real-Time preemption testcases"
  2. HOMEPAGE = "https://wiki.linuxfoundation.org/realtime/documentation/start"
  3. DESCRIPTION = "The main aim of the PREEMPT_RT patch is to minimize the amount of kernel code that is non-preemptible Therefore several substitution mechanisms and new mechanisms are implemented."
  4. SECTION = "tests"
  5. DEPENDS = "linux-libc-headers virtual/libc numactl"
  6. LICENSE = "GPL-2.0-only & GPL-2.0-or-later"
  7. LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
  8. require rt-tests.inc
  9. inherit ptest
  10. SRC_URI += " \
  11. file://run-ptest \
  12. file://rt_bmark.py \
  13. file://0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch \
  14. "
  15. # rt-tests needs PI mutex support in libc
  16. COMPATIBLE_HOST:libc-musl = 'null'
  17. # Do not install hwlatdetect
  18. EXTRA_OEMAKE += "PYLIB=''"
  19. do_install() {
  20. oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \
  21. INCLUDEDIR=${includedir}
  22. }
  23. do_install_ptest() {
  24. cp ${UNPACKDIR}/rt_bmark.py ${D}${PTEST_PATH}
  25. }
  26. RDEPENDS:${PN}-ptest += " stress-ng python3 python3-multiprocessing python3-datetime python3-misc"
  27. FILES:${PN} += "${prefix}/src/backfire"
  28. RDEPENDS:${PN} += "bash"