[Buildroot] [PATCH] Allow Buildroot to update toolchain

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Sep 27 17:54:02 UTC 2013


Dear ANDY KENNEDY,

On Fri, 27 Sep 2013 15:41:36 +0000, ANDY KENNEDY wrote:

> Okay, I see the difference between my patch and what HOST_DIR does.
> When using HOST_DIR, the normal location of output/host is redirected
> to /opt/somedir then the toolchain, all existing libs, all buildroot
> built libs get dumped into that location.
> 
> In my patch, I have made this assumption:  The user already has
> a toolchain in /opt/somedir/mytoolchain and desires to keep that
> location.  After looking at what the code does, I don't really think
> that I can specify the SAME location for HOST_DIR as it would attempt
> to copy files onto itself (which would then, presumably, error out).
> In the case of using the SYSROOT as the staging directory, ONLY the
> libraries get copied back to the toolchain's sysroot (and the really
> nice thing about this is that the user never has to tell me where to
> put the stuff, I asked the toolchain for the sysroot dir).
> 
> So, as I stated before, I'll keep dragging this patch around if you
> don't want to include it into Buildroot, but I believe this may be
> something that others would like to use.  But, I've been wrong
> MANY times before ;).

I still don't quite understand your use case. If you don't use
BR2_HOST_DIR=/opt/someplace/ and keep telling your users to use their
original toolchain, they have to pass many options to the compiler and
linker to point to the right library locations. They also don't have
access to the right pkg-config that works in cross-compilation mode
that Buildroot has built.

I *really* believe you should have a deeper look at what it means to
specify a custom BR2_HOST_DIR, I think it's really what you should be
using.

Best regards,

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


More information about the buildroot mailing list