[oe] Qt and detecting iWMMXT

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Sat Sep 25 08:18:20 UTC 2010


2010/9/25 Frans Meulenbroeks <fransmeulenbroeks at gmail.com>:
> 2010/9/25 Koen Kooi <k.kooi at student.utwente.nl>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 24-09-10 22:59, Holger Freyther wrote:
>>> Hi all,
>>>
>>> when building for XScale one could pass -iwmmxt to the configure script. Now
>>> how can a recipe find out if XScale systems are targeted? The closest thing I
>>> can think of is to look at PACKAGE_ARCH and see if xscale is in it.
>>
>> Adapted from the mplayer magic Graeme and I came up with some years ago:
>>
>> #build with support for the iwmmxt instruction (pxa270 and up)
>> MY_ARCH := "${PACKAGE_ARCH}"
>> PACKAGE_ARCH = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt',
>> '${MY_ARCH}',d)}"
>>
>> QT_CONFIG_FLAGS_append = " ${@base_contains('MACHINE_FEATURES',
>> 'iwmmxt', ' -iwmmxt', '',d)} "
>>
>> regards,
>>
>> Koen
>
> Nice solution.
> Guess it would be useful to have a list of all possible
> MACHINE_FEATURES and DISTRO_FEATURES somewhere (e.g. wiki)
>
> Frans
>
Rethinking the issue: assuming we *do* want SOC_FAMILY would it not be
more appropriate to use that here?

Frans




More information about the Openembedded-devel mailing list