2010/9/25 Koen Kooi <[email protected]>: > -----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 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
