[OpenWrt-Devel] ffmpeg on au1500 --disable-mips32r2

Florian Fainelli florian at openwrt.org
Mon Oct 13 23:09:03 EDT 2014


2014-10-13 9:16 GMT-07:00 Dirk Neukirchen <dirkneukirchen at web.de>:
> On 13.10.2014 17:55, Bruno Randolf wrote:
>> Hello again,
>>
>> ffmpeg tries to automatically enable optimizations for the MIPS
>> platform, but for au1500 it automatically enables mips32r2, which this
>> CPU does not support.
>>
>> For now, I could fix the problem by adding --disable-mips32r2 to
>> FFMPEG_CONFIGURE, but again, this is probably not the correct solution
>> for all platforms. How should it be done right?
>>
> use appropriate .config symbols (dunno which is the right one) and add something like
>
> $(if $(CONFIG_TARGET_au1000),--disable-mips32r2)

I would test for CPU_TYPE instead of the target, since au1000 is not
the only one we support which is mips32r1 only. So something like:

$(ifeq $(CONFIG_CPU_TYPE),"mips32",--disable-mips32r2) would probably
work just fine. Anything that is mips32r2 sets a different CPU_TYPE,
such as 24kec+dsp, 34kc, 74k or even mips32r2.
-- 
Florian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list