[FFmpeg-devel] Support for non-AltiVec PowerPC from Freescale

Måns Rullgård mans
Sat Jan 30 14:20:59 CET 2010


Ancoron Luciferis <ancoron at chaoslayer.de> writes:

> Hi *,
>
> just want to add something to the configure script to ease with
> compiling for non-altivec PPC CPUs like the MPC85xx from Freescale (e500
> v2 core).
>
> Here's the diff for the 'configure' script:
>
> --- configure.orig      2010-01-30 02:17:11.303086681 +0100
> +++ configure   2010-01-30 02:23:07.863083437 +0100
> @@ -1912,6 +1912,10 @@
>              cpuflags="-mcpu=cell"
>              enable ldbrx
>          ;;
> +        e500v2|E500V2)
> +            cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double"
> +            disable altivec
> +        ;;
>      esac

Why use a different tag than the -mcpu flag uses?  The cases where we
match different names are mostly to due to variations in tools like
uname or if gcc uses a name different from what the cpu is commonly
known as (which may well be the case here).  Also, my gcc manual lists
-mcpu=8540 but not 8548.

> I would really appreciate to see that one included. To answer one of the
> questions: the mentioned MPC85xx CPUs are build into a lot of devices
> like NAS's (e.g. Synology DiskStation running BusyBox with kernel 2.6)
> and other network or media related devices.

I have nothing against the patch as such.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list