Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Using buildroot generated toolchain as external toolchain issues
Date: Wed, 29 Jul 2015 09:00:36 +0200	[thread overview]
Message-ID: <20150729090036.65757161@free-electrons.com> (raw)
In-Reply-To: <1526636.mbSdBIvjiD@sagittea>

J?r?me, Matthew,

On Wed, 29 Jul 2015 08:22:04 +0200, J?r?me Pouiller wrote:

> > I then take the contents of the output/host/usr directory and put it in
> > a tar
> > file that is then used as the external toolchain in the other buildroot
> > instances.  
> Your problem come from this step. Buildroot toolchains are not "relocatable". 
> It means they don't work if move them away from their original location 
> (Samuel Martin sent a patch to fix this behavior).

Correct.

> 
> Therefore, once you compiled your toolchain, use "Pre-installed toolchain" 
> option in order to use it.

This will not change anything: the toolchain must still be installed in
the location for which it was compiled, but as you can explain below,
this location can be customized.

> Note: while you compile you toolchain, you can change BR2_HOST_DIR in order to 
> build it directly in directory of you choice (/opt/arm-buildroot-linux-
> gnueabihf for example).

Matthew, there are two options currently available to fix this problem:

 * Use Samuel Martin's patches that adjust the RPATH of host binaries
   automatically at the end of the build:

   http://lists.busybox.net/pipermail/buildroot/2015-July/132483.html
   and following patches.

 * Use a quick hack that consists in building the libraries needed by
   gcc as static libraries. This is the trick I'm currently using to
   build the Buildroot external toolchains used in the autobuilders
   (http://autobuild.buildroot.org). I can provide the patch if you
   want.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-07-29  7:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 22:44 [Buildroot] Using buildroot generated toolchain as external toolchain issues Matthew Starr
2015-07-29  6:22 ` Jérôme Pouiller
2015-07-29  7:00   ` Thomas Petazzoni [this message]
2015-07-29 13:22     ` Matthew Starr
2015-07-29 13:30       ` Thomas Petazzoni
2015-07-29 21:54         ` Matthew Starr
2015-07-29 22:23           ` Thomas Petazzoni

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=20150729090036.65757161@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox