[yocto] [PATCH] mpc8315e-rdb: Set TARGET_FPU correct

Bruce Ashfield bruce.ashfield at windriver.com
Fri Jul 15 06:22:43 PDT 2011


On 07/15/11 08:29, Kumar Gala wrote:
>
> On Jul 15, 2011, at 12:31 AM, Bruce Ashfield wrote:
>
>> On 11-07-15 12:56 AM, Kumar Gala wrote:
>>> The MPC8315E has a e300c3 core in it with 'classic' or normal PPC
>>> floating point.
>>>
>>> 'SPE' floating point is what exists on the e500v2 core.
>>
>> Acked-by: Bruce Ashfield<bruce.ashfield at windriver.com>
>>
>> Been meaning to change this for a while, the good news, is that
>> the setting doesn't make any difference at the moment :)
>>
>> Cheers,
>>
>> Bruce
>
> True, I want to use this for configure toolchain properly:
>
> I'm looking at doing the following for when SPE is set:

Definitely. It was simply good fortune that it hadn't been
used yet. And when something like you are doing arrives, we
want to have it right. Just to have it right, is a good enough
reason!

Cheers,

Bruce



>
> diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
> index 7bf036c..409ad01 100644
> --- a/meta/recipes-devtools/gcc/gcc-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-common.inc
> @@ -12,6 +12,8 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
>   def get_gcc_fpu_setting(bb, d):
>       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
>           return "--with-float=soft"
> +    if bb.data.getVar('TARGET_FPU', d, 1) in [ 'spe' ]:
> +        return "--enable-e500_double"
>       return ""
>




More information about the yocto mailing list