1*4882a593SmuzhiyunSUMMARY = "Filesystem and hardware benchmark and stress tool" 2*4882a593SmuzhiyunDESCRIPTION = "fio is an I/O tool meant to be used both for benchmark and \ 3*4882a593Smuzhiyunstress/hardware verification. It has support for a number of I/O engines, \ 4*4882a593SmuzhiyunI/O priorities (for newer Linux kernels), rate I/O, forked or threaded jobs, \ 5*4882a593Smuzhiyunand much more. It can work on block devices as well as files. fio accepts \ 6*4882a593Smuzhiyunjob descriptions in a simple-to-understand text format. Several example job \ 7*4882a593Smuzhiyunfiles are included. fio displays all sorts of I/O performance information." 8*4882a593SmuzhiyunHOMEPAGE = "http://freecode.com/projects/fio" 9*4882a593SmuzhiyunSECTION = "console/tests" 10*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunDEPENDS = "libaio zlib coreutils-native" 14*4882a593SmuzhiyunDEPENDS += "${@bb.utils.contains('MACHINE_FEATURES', 'pmem', 'pmdk', '', d)}" 15*4882a593SmuzhiyunRDEPENDS:${PN} = "python3-core bash" 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunPACKAGECONFIG_NUMA = "numa" 18*4882a593Smuzhiyun# ARM does not currently support NUMA 19*4882a593SmuzhiyunPACKAGECONFIG_NUMA:arm = "" 20*4882a593SmuzhiyunPACKAGECONFIG_NUMA:armeb = "" 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunPACKAGECONFIG ??= "${PACKAGECONFIG_NUMA}" 23*4882a593SmuzhiyunPACKAGECONFIG[numa] = ",--disable-numa,numactl" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunSRCREV = "a3e48f483db27d20e02cbd81e3a8f18c6c5c50f5" 26*4882a593SmuzhiyunSRC_URI = "git://git.kernel.dk/fio.git;branch=master \ 27*4882a593Smuzhiyun" 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunS = "${WORKDIR}/git" 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun# avoids build breaks when using no-static-libs.inc 32*4882a593SmuzhiyunDISABLE_STATIC = "" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunEXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'" 35*4882a593SmuzhiyunEXTRA_OECONF = "${@bb.utils.contains('MACHINE_FEATURES', 'x86', '--disable-optimizations', '', d)}" 36*4882a593Smuzhiyun 37*4882a593Smuzhiyundo_configure() { 38*4882a593Smuzhiyun ./configure ${EXTRA_OECONF} 39*4882a593Smuzhiyun} 40*4882a593Smuzhiyun 41*4882a593Smuzhiyundo_install() { 42*4882a593Smuzhiyun oe_runmake install DESTDIR=${D} prefix=${prefix} mandir=${mandir} 43*4882a593Smuzhiyun install -d ${D}/${docdir}/${PN} 44*4882a593Smuzhiyun cp -R --no-dereference --preserve=mode,links -v ${S}/examples ${D}/${docdir}/${PN}/ 45*4882a593Smuzhiyun} 46