1*4882a593SmuzhiyunSUMMARY = "Real-Time preemption testcases" 2*4882a593SmuzhiyunHOMEPAGE = "https://wiki.linuxfoundation.org/realtime/documentation/start" 3*4882a593SmuzhiyunDESCRIPTION = "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*4882a593SmuzhiyunSECTION = "tests" 5*4882a593SmuzhiyunDEPENDS = "linux-libc-headers virtual/libc numactl" 6*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & GPL-2.0-or-later" 7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunrequire rt-tests.inc 10*4882a593Smuzhiyuninherit ptest 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRC_URI += " \ 13*4882a593Smuzhiyun file://run-ptest \ 14*4882a593Smuzhiyun file://rt_bmark.py \ 15*4882a593Smuzhiyun file://0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch \ 16*4882a593Smuzhiyun " 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# rt-tests needs PI mutex support in libc 19*4882a593SmuzhiyunCOMPATIBLE_HOST:libc-musl = 'null' 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun# Do not install hwlatdetect 22*4882a593SmuzhiyunEXTRA_OEMAKE += "PYLIB=''" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyundo_install() { 25*4882a593Smuzhiyun oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ 26*4882a593Smuzhiyun INCLUDEDIR=${includedir} 27*4882a593Smuzhiyun} 28*4882a593Smuzhiyun 29*4882a593Smuzhiyundo_install_ptest() { 30*4882a593Smuzhiyun cp ${WORKDIR}/rt_bmark.py ${D}${PTEST_PATH} 31*4882a593Smuzhiyun} 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += " stress-ng python3 python3-multiprocessing python3-datetime python3-misc" 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunFILES:${PN} += "${prefix}/src/backfire" 36*4882a593SmuzhiyunRDEPENDS:${PN} += "bash" 37