From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lo.gmane.org ([80.91.229.12]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1OzGUt-0005UW-S6 for openembedded-devel@lists.openembedded.org; Sat, 25 Sep 2010 00:12:04 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OzGUn-0005cQ-Pf for openembedded-devel@lists.openembedded.org; Sat, 25 Sep 2010 00:11:57 +0200 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Sep 2010 00:11:57 +0200 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Sep 2010 00:11:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@lists.openembedded.org From: Koen Kooi Date: Sat, 25 Sep 2010 00:11:50 +0200 Message-ID: References: <4C9D1136.2070507@freyther.de> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100822 Shredder/3.0.7pre In-Reply-To: <4C9D1136.2070507@freyther.de> X-Enigmail-Version: 1.0.1 X-SA-Exim-Connect-IP: 80.91.229.12 X-SA-Exim-Mail-From: gcho-openembedded-devel@m.gmane.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: Qt and detecting iWMMXT X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 22:12:04 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----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-----