]> code.ossystems Code Review - openembedded-core.git/commitdiff
pixman: Handle PowerPC without Altivec
authorAnton Blanchard <anton@ozlabs.org>
Sun, 8 Aug 2021 04:51:21 +0000 (14:51 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Aug 2021 05:26:10 +0000 (06:26 +0100)
Configure with -Dvmx=enabled/disabled based on the Altivec feature.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/xorg-lib/pixman_0.40.0.bb

index 00dd68006fa1712d79a333940585e989c270e461..ab9595cc75d0d8ed559c59a12dba5bc3e22a59de 100644 (file)
@@ -34,4 +34,8 @@ EXTRA_OEMESON += "-Dloongson-mmi=disabled"
 # disable iwmmxt due to compile fails on most arm platforms.
 EXTRA_OEMESON += "-Diwmmxt=disabled"
 
+EXTRA_OEMESON:append:class-target:powerpc = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
+EXTRA_OEMESON:append:class-target:powerpc64 = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
+EXTRA_OEMESON:append:class-target:powerpc64le = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "-Dvmx=enabled", "-Dvmx=disabled", d)}"
+
 BBCLASSEXTEND = "native nativesdk"