[oe] Qt and detecting iWMMXT

Koen Kooi k.kooi at student.utwente.nl
Fri Sep 24 22:11:50 UTC 2010


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMnSIlMkyGM64RGpERAumBAKCU8rfNBZ7GTmSgJwgKZ25iWom2xwCgt6hF
T3hkQK3OSWktYh6IYsUghmE=
=odW5
-----END PGP SIGNATURE-----





More information about the Openembedded-devel mailing list