mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 04:31:56 +02:00
Pass parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue: $ gdb /usr/bin/fio (gdb) r -h Starting program: /usr/bin/fio -h [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1; (gdb) bt #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2, argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0) at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88 #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2, argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8) at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264 #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120 Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
46 lines
1.5 KiB
BlitzBasic
46 lines
1.5 KiB
BlitzBasic
SUMMARY = "Filesystem and hardware benchmark and stress tool"
|
|
DESCRIPTION = "fio is an I/O tool meant to be used both for benchmark and \
|
|
stress/hardware verification. It has support for a number of I/O engines, \
|
|
I/O priorities (for newer Linux kernels), rate I/O, forked or threaded jobs, \
|
|
and much more. It can work on block devices as well as files. fio accepts \
|
|
job descriptions in a simple-to-understand text format. Several example job \
|
|
files are included. fio displays all sorts of I/O performance information."
|
|
HOMEPAGE = "http://freecode.com/projects/fio"
|
|
SECTION = "console/tests"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
DEPENDS = "libaio zlib"
|
|
RDEPENDS_${PN} = "python bash"
|
|
|
|
PACKAGECONFIG_NUMA = "numa"
|
|
# ARM does not currently support NUMA
|
|
PACKAGECONFIG_NUMA_arm = ""
|
|
|
|
PACKAGECONFIG ??= "${PACKAGECONFIG_NUMA}"
|
|
PACKAGECONFIG[numa] = ",--disable-numa,numactl"
|
|
|
|
# rev for v3.8
|
|
SRCREV = "bfd986752ad053175423ffe3bbbeb07803f8ad4a"
|
|
SRC_URI = "git://git.kernel.dk/fio.git \
|
|
file://0001-update-the-interpreter-paths.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# avoids build breaks when using no-static-libs.inc
|
|
DISABLE_STATIC = ""
|
|
|
|
EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
|
|
EXTRA_OECONF = "--disable-optimizations"
|
|
|
|
do_configure() {
|
|
./configure ${EXTRA_OECONF}
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake install DESTDIR=${D} prefix=${prefix} mandir=${mandir}
|
|
install -d ${D}/${docdir}/${PN}
|
|
cp -R --no-dereference --preserve=mode,links -v ${S}/examples ${D}/${docdir}/${PN}/
|
|
}
|