All of lore.kernel.org
 help / color / mirror / Atom feed
From: Siddharth Heroor <heroor@ti.com>
To: Denys Dmytriyenko <denys@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>,
	"Senicic, Djordje" <d-senicic1@ti.com>
Subject: Re: Compiling gcc for A15 in Yocto
Date: Thu, 11 Jul 2013 09:04:43 +0530	[thread overview]
Message-ID: <51DE27D3.6090505@ti.com> (raw)
In-Reply-To: <20130711025732.GA26533@denix.org>

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_.

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.

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.

--
Sid


  reply	other threads:[~2013-07-11  3:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-10 15:51 Compiling gcc for A15 in Yocto Saran, Sajesh Kumar
2013-07-10 15:52 ` Saran, Sajesh Kumar
2013-07-10 16:32   ` Denys Dmytriyenko
2013-07-11  2:23     ` Siddharth Heroor
2013-07-11  2:57       ` Denys Dmytriyenko
2013-07-11  3:34         ` Siddharth Heroor [this message]
2013-07-11  4:11           ` Denys Dmytriyenko
2013-07-11  4:22             ` Siddharth Heroor
2013-07-10 15:53 ` Maupin, Chase

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51DE27D3.6090505@ti.com \
    --to=heroor@ti.com \
    --cc=d-senicic1@ti.com \
    --cc=denys@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.