From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QgK7X-0005Tu-MZ for openembedded-core@lists.openembedded.org; Mon, 11 Jul 2011 19:18:11 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p6BGopU5013094 for ; Mon, 11 Jul 2011 17:50:51 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12581-06 for ; Mon, 11 Jul 2011 17:50:46 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p6BGojZ9013088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 11 Jul 2011 17:50:45 +0100 From: Richard Purdie To: Patches and discussions about the oe-core layer In-Reply-To: <1310402833.20015.986.camel@rex> References: <1310399860.20015.980.camel@rex> <164DA52B-98AF-47AA-A42D-1DE7FA9A1200@dominion.thruhere.net> <1310402833.20015.986.camel@rex> Date: Mon, 11 Jul 2011 17:49:59 +0100 Message-ID: <1310402999.20015.989.camel@rex> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-Virus-Scanned: amavisd-new at rpsys.net X-Mailman-Approved-At: Mon, 11 Jul 2011 19:19:25 +0200 Subject: Re: [RFC PATCH 2/3] conf/machine: Overhaul tune include files X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 17:18:11 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Mon, 2011-07-11 at 17:47 +0100, Richard Purdie wrote: > On Mon, 2011-07-11 at 18:34 +0200, Koen Kooi wrote: > > Taking armv7a as an example with my angstrom hat on I need the following knobs: > > > > 1) softp or hardfp calling conventions, resulting in a different package arch (e.g. armv7a vs armv7ahf) (link incompatible) > > 2) neon or not, resulting in a different packagearch (e.g armv7a vs armv7a-vfponly) (link compatible) > > 3) Thumb2 or arm mode, no direct need for different packagearch, they are compatible > > 4) use FPU fw or not (TARGET_PFU) (slightly different from 2.) > > > > Do you have any examples on how the package arch will look with this patchset? > > I added in code to differentiate between big and little endian. We can > add in code to add extra options, e.g. in the tune-armv7 case: > > > TARGET_CC_ARCH += "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "-mfloat-abi=hardfp", "-mfloat-abi=softfp" ,d)}" > > PACKAGE_EXTRA_ARCHS = "${TUNE_ARCH}${SUFX2} armv4${ENDSUFX}${SUFX2} armv4t${ENDSUFX}${SUFX2} armv5te${ENDSUFX}${SUFX2} armv6${ENDSUFX}${SUFX2} armv7${ENDSUFX}${SUFX2}" Sorry, I hit sent early accidently whilst trying to paste something in here. I was thinking something along these lines: TUNE_PKGARCH = "armv7${SUFX2}" TARGET_CC_ARCH += "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "-mfloat-abi=hardfp", "-mfloat-abi=softfp" ,d)}" SUFX2 = "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "-hfp", "" ,d)} PACKAGE_EXTRA_ARCHS = "${TUNE_ARCH}${SUFX2} armv4${ENDSUFX}${SUFX2} armv4t${ENDSUFX}${SUFX2} armv5te${ENDSUFX}${SUFX2} armv6${ENDSUFX}${SUFX2} armv7${ENDSUFX}${SUFX2}" Where "hardfp" support might be in tune-arm-feature-hardfp.inc