[OE-core] [V2 07/10] x264: Fix build on mips architectures

Khem Raj raj.khem at gmail.com
Mon Dec 19 16:43:58 UTC 2016


On Mon, Dec 19, 2016 at 2:40 AM, André Draszik <git at andred.net> wrote:
> On Mon, 2016-12-19 at 10:33 +0000, André Draszik wrote:
>> On Sun, 2016-12-18 at 22:39 -0800, Khem Raj wrote:
>> > Disable asm to fix
>> >
>> > > You specified a pre-MSA CPU in your CFLAGS.
>> > > If you really want to run on such a CPU, configure with --disable-asm.
>> >
>> > Signed-off-by: Khem Raj <raj.khem at gmail.com>
>> > ---
>> >  meta/recipes-multimedia/x264/x264_git.bb | 2 ++
>> >  1 file changed, 2 insertions(+)
>> >
>> > diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-
>> > multimedia/x264/x264_git.bb
>> > index e790681ad3..240a19661f 100644
>> > --- a/meta/recipes-multimedia/x264/x264_git.bb
>> > +++ b/meta/recipes-multimedia/x264/x264_git.bb
>> > @@ -23,6 +23,8 @@ inherit lib_package pkgconfig perlnative
>> >  X264_DISABLE_ASM = ""
>> >  X264_DISABLE_ASM_armv4 = "--disable-asm"
>> >  X264_DISABLE_ASM_armv5 = "--disable-asm"
>> > +X264_DISABLE_ASM_mips = "--disable-asm"
>> > +X264_DISABLE_ASM_mipsel = "--disable-asm"
>>
>> I think you can use _mipsarch these days, which covers all MIPS. Equally,
>> mips32r5 and later have MSA, so I think the override should be:
>>
>> X264_DISABLE_ASM_mipsarch = "--disable-asm"
>> X264_DISABLE_ASM_mipsarchr6 = ""
>>
>> or just
>>
>> X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("AVAILTUNES", "mips32r6", "", "--disable-asm", d)}"
>
> or
>
> X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}"
>
>

Yeah using misparch is right approach here.

>> not sure, and completely untested.
>
> A.
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list