[OE-core] [PATCH 3/4] arch-powerpc.inc: use default value of TUNE_PKGARCH

McClintock Matthew-B29882 B29882 at freescale.com
Mon Feb 27 21:52:24 UTC 2012


On Mon, Feb 27, 2012 at 3:41 PM, Matthew McClintock <msm at freescale.com> wrote:
> On Mon, Feb 27, 2012 at 1:38 PM, Matthew McClintock <msm at freescale.com> wrote:
>> We can use the default value for TUNE_PKGARCH, and now we just
>> append "-nf" if no float is the build target
>>
>> Signed-off-by: Matthew McClintock <msm at freescale.com>
>> ---
>>  meta/conf/machine/include/powerpc/arch-powerpc.inc |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc
>> index c9b2829..350f9a9 100644
>> --- a/meta/conf/machine/include/powerpc/arch-powerpc.inc
>> +++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc
>> @@ -20,8 +20,7 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e
>>
>>  PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
>
> This bit above needs to change too.. we need to reverse the logic:
>
> -PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" ,
> "", "-nf", d)}"
> +PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft" ,
> "-nf", "", d)}"
>
> So for parts with an SPE which define ppc-efd and ppc-efs we don't get
> the '-nf' appended (the part this patch adds just below)

Or perhaps after finding some python/bitbake foo:

PPCPKGSFX_FPU = "${@['', '-nf', '',
'-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-hard',
'fpu-soft', 'ppc-efs', 'ppc-efd']]}"

-M




More information about the Openembedded-core mailing list