Patchwork [PATCHv2] x246: Disable Altivec asm when SPE is enabled.

login
register
mail settings
Submitter David Nyström
Date Feb. 21, 2014, 9:59 p.m.
Message ID <1393019963-15170-1-git-send-email-david.c.nystrom@gmail.com>
Download mbox | patch
Permalink /patch/67137/
State Accepted
Commit 6a708c3edb5da3d73730eaf21d8c6c4f79972e9d
Headers show

Comments

David Nyström - Feb. 21, 2014, 9:59 p.m.
asm code is written for Altivec, and should be disabled
for powerpc SPE enabled targets.

Signed-off-by: David Nyström <david.c.nystrom@gmail.com>
---
 meta/recipes-multimedia/x264/x264_git.bb | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-multimedia/x264/x264_git.bb
index 5ebf885..0e305ea 100644
--- a/meta/recipes-multimedia/x264/x264_git.bb
+++ b/meta/recipes-multimedia/x264/x264_git.bb
@@ -23,6 +23,7 @@  inherit lib_package pkgconfig
 X264_DISABLE_ASM = ""
 X264_DISABLE_ASM_armv4 = "--disable-asm"
 X264_DISABLE_ASM_armv5 = "--disable-asm"
+X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}"
 
 EXTRA_OECONF = '--prefix=${prefix} \
                 --host=${HOST_SYS} \