[oe-commits] [meta-openembedded] 01/02: fio: disable compiler optimizations for x86 arch

git at git.openembedded.org git at git.openembedded.org
Fri Mar 13 18:01:43 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit d104def001dba5c246abef6bc9f4e5f766b429d8
Author: Liwei Song <liwei.song at windriver.com>
AuthorDate: Fri Mar 13 18:16:29 2020 +0800

    fio: disable compiler optimizations for x86 arch
    
    with compiler optimizations enabled, "fio --help" will failed with
    "Illegal instruction" on Intel Denverton board.
    Enable it on condition that MACHINE_FEATURES include x86.
    
    Related commits:
    https://git.openembedded.org/meta-openembedded/commit/?id=c58d9d500f90246d2d879e720fdfa5bbbc731c7f
    https://git.openembedded.org/meta-openembedded/commit/?id=739349da0826221f98648b64b693f9ae33e7d4ea
    
    Signed-off-by: Liwei Song <liwei.song at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-benchmark/fio/fio_3.17.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-benchmark/fio/fio_3.17.bb b/meta-oe/recipes-benchmark/fio/fio_3.17.bb
index b65ab19..759d108 100644
--- a/meta-oe/recipes-benchmark/fio/fio_3.17.bb
+++ b/meta-oe/recipes-benchmark/fio/fio_3.17.bb
@@ -34,6 +34,7 @@ S = "${WORKDIR}/git"
 DISABLE_STATIC = ""
 
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "${@bb.utils.contains('MACHINE_FEATURES', 'x86', '--disable-optimizations', '', d)}"
 
 do_configure() {
     ./configure ${EXTRA_OECONF}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list