All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Steinkuehler <charles@steinkuehler.net>
To: John Morris <john@zultron.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] Cross-compiling for ARM
Date: Mon, 19 May 2014 11:03:04 -0500	[thread overview]
Message-ID: <537A2B38.6090304@steinkuehler.net> (raw)
In-Reply-To: <53792066.5050909@xenomai.org>

On 5/18/2014 4:04 PM, Gilles Chanteperdrix wrote:
> On 05/18/2014 10:36 PM, John Morris wrote:
>> My Debian kernel packages are just updated to Xenomai 2.6.3 and Linux 
>> 3.8.13 (will ask for testing soon), and I'm starting to look at adding 
>> armhf packages using Robert C Nelson's and Charles Steinkuehler's patch 
>> sets.  However, I'm brand-new at cross-compiling and would appreciate a 
>> pointer.
>>
>> Right out of the box, pbuilder can build in a QEMU-emulated chroot by 
>> setting --arch=armhf and --debootstrap=qemu-debootstrap.  Super easy. 
>> Super slow.
>>
>> Is there a way to cross-compile in an x86 native environment so that the 
>> (x86 native) compiler/assembler/linker/etc. cross-build for ARM 
>> architecture?
> 
> You need to install a cross compilation toolchain. You can find 
> pre-built ones, for instance for armhf, you can use the linaro 
> toolchain.

The RCN kernel build scripts (so my scripts as well) will download a
known working linaro cross-compiler if you run on an x86 machine and
don't point the build scripts to a pre-installed tool chain.

Review the scripts/gcc.sh shell script if you need hints on getting the
cross-compiler up and running, but it's pretty straight-forward.

-- 
Charles Steinkuehler
charles@steinkuehler.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140519/9b40e5ae/attachment.sig>

      reply	other threads:[~2014-05-19 16:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-18 20:36 [Xenomai] Cross-compiling for ARM John Morris
2014-05-18 21:04 ` Gilles Chanteperdrix
2014-05-19 16:03   ` Charles Steinkuehler [this message]

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=537A2B38.6090304@steinkuehler.net \
    --to=charles@steinkuehler.net \
    --cc=john@zultron.com \
    --cc=xenomai@xenomai.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.