From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by arago-project.org (Postfix) with ESMTPS id D498452983 for ; Thu, 11 Jul 2013 04:11:04 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6B4B3lg003926 for ; Wed, 10 Jul 2013 23:11:03 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6B4B3iH007115 for ; Wed, 10 Jul 2013 23:11:03 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Wed, 10 Jul 2013 23:11:02 -0500 Received: from localhost (gtudedge.gt.design.ti.com [158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6B4B2Nr022018; Wed, 10 Jul 2013 23:11:02 -0500 Date: Thu, 11 Jul 2013 00:11:01 -0400 From: Denys Dmytriyenko To: Siddharth Heroor Message-ID: <20130711041101.GC18647@edge> References: <8EAE6244CE843044A42356038645C8551573366C@DFLE12.ent.ti.com> <8EAE6244CE843044A42356038645C85515733685@DFLE12.ent.ti.com> <20130710163214.GA16407@edge> <51DE1710.1090305@ti.com> <20130711025732.GA26533@denix.org> <51DE27D3.6090505@ti.com> MIME-Version: 1.0 In-Reply-To: <51DE27D3.6090505@ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "meta-arago@arago-project.org" , "Senicic, Djordje" Subject: Re: Compiling gcc for A15 in Yocto X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 04:11:05 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Thu, Jul 11, 2013 at 09:04:43AM +0530, Siddharth Heroor wrote: > On 7/11/2013 8:27 AM, Denys Dmytriyenko wrote: > > On Thu, Jul 11, 2013 at 07:53:12AM +0530, Siddharth Heroor wrote: > >> On 7/10/2013 10:02 PM, Denys Dmytriyenko wrote: > >>> On Wed, Jul 10, 2013 at 03:52:47PM +0000, Saran, Sajesh Kumar wrote: > >>>> I am not clear in last e-mail. > >>>> > >>>> We are trying to compile gcc for ARM in an X86 Ubuntu machine. > >>> > >>> Sajesh, > >>> > >>> If you use recent recipes in Yocto to build gcc from sources, it doesn't use > >>> any git or svn repositories any more, but downloads a release tarball. I've > >>> done it before and there's an easy way to enable it in Arago - just set > >>> TOOLCHAIN_TYPE=internal > >>> > >> > >> Slightly related question. Is it possible to get tools-sdk as a > >> IMAGE_FEATURE? I haven't been able to do that successfully. We use the > >> Linaro 4.7 as an external toolchain, but having tools-sdk with > >> gcc-linaro-4.7 as the compiler running on the target is very useful. > > > > Linaro toolchain is a cross-compiler and we use pre-built binaries that are to > > be run on x86 to generate code for ARM. It won't be possible to run it on the > > target (ARM). You'd need to compile the toolchain from sources for ARM. That > > is what Sajesh and Djordje were asking for - to be able to build gcc for the > > target from sources... > > I was looking at meta-linaro/recipes-devtools/gcc. The gcc-linaro* > recipes should allow building the compiler from source with SRC_URI set > to something like > https://launchpad.net/gcc-linaro/4.7/4.7-${RELEASE}/+download/gcc-${PV}-${RELEASE}.tar.bz2. > > > I want to use the prebuilt cross-compiler to generate an image which has > gcc-linaro-4.7 and corresponding tools-sdk features (i.e autotools, > pkgconfig etc..). That means it downloads the linaro toolchain source > and builds it to run _on the target_. Correct, that's exactly what I was trying to say :) > Right now, bitbake -s | grep gcc gives > > gcc :4.5-r49+svnr184907 > gcc-cross :4.5-r49+svnr184907 > gcc-cross-canadian-arm :4.5-r49+svnr184907 > gcc-cross-initial :4.5-r49+svnr184907 > gcc-cross-intermediate :4.5-r49+svnr184907 > gcc-crosssdk :4.5-r49+svnr184907 > :4.7.2-r13 > gcc-crosssdk-initial :4.5-r49+svnr184907 > :4.7.2-r13 > gcc-crosssdk-intermediate :4.5-r49+svnr184907 > gcc-runtime :4.5-r49+svnr184907 > gccmakedep 1:1.0.2-r3 > libgcc :4.5-r49+svnr184907 > nativesdk-gcc-runtime :4.5-r49+svnr184907 > :4.7.2-r13 > nativesdk-libgcc :4.5-r49+svnr184907 > :4.7.2-r13 > > I'm wondering what's the way to override these values (not touching > TOOLCHAIN_EXTERNAL) to allow gcc-linaro-4.7 to be picked up. The > prebuilt toolchain would then build gcc-linaro-4.7 and then add it to > the image. First of all, if you are seeing all 4.5 versions selected by default, you are probably using Arago as a cross toolchain - check your TOOLCHAIN_BRAND. Second, to use Linaro gcc compiled from sources, you need to set bunch of PREFERRED_VERSION variables, easily done like this: GCCVERSION = "linaro-4.7%" > The rationale is that Cortex A15 devices (like OMAP5/DRA7xx and > Keystone2) are pretty fast. For an individual linux developer, having a > toolchain on the image, makes it trivial to develop software - by > eliminating cross-compiling. Understood and that's what Keystone guys are doing already. -- Denys