[Buildroot] [PATCH v8 08/10] external-toolchain: check if a buildroot SDK has already been relocated

Arnout Vandecappelle arnout at mind.be
Fri Jul 21 20:31:48 UTC 2017



On 21-07-17 10:05, Thomas Petazzoni wrote:
[snip]
>>> For a SDK to be usable as an external toolchain, it has to be
>>> a SDK that contains *just* a toolchain and *nothing* else. If its
>>> sysroot is polluted with additional libraries than the C library, it
>>> cannot be used as an external toolchain.

 This is not true. I already regularly use a Buildroot SDK in projects by
setting BR2_HOST_DIR=/opt/... and packaging that. This SDK is then used to
create a rootfs+kernel with Buildroot, and separately to build applications.
Since the applications need some additional libraries, these libraries are
included in the SDK. They are not used by Buildroot, so it's double work (they
are included in the SDK, and built again for the target rootfs).

 Admittedly it's not perfect, but it works. At least, as long as you don't go
and update Buildroot (thus putting new versions of the libraries on the target)
without updating the SDK as well.

 However...

>>> And therefore, the
>>> relocate-sdk procedure is useless, because there's nothing to relocate
>>> in an SDK that is just a toolchain.  
>>
>> OK. I see. Then I will drop this patch.
> 
> Let's see if Arnout agrees with my reasoning. Quite often he points me
> at details I have missed :-)

 relocate-sdk is still useless when using it as an external toolchain. You could
say it makes sense for a pre-installed toolchain, but then only if you're using
that SDK outside of Buildroot. Buildroot is not going to use any of the
additional stuff.

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF



More information about the buildroot mailing list