[Buildroot] [PATCH] external-toolchain: Detect linux/version.h via cross compiler

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Nov 3 20:43:44 UTC 2020


On Tue, 3 Nov 2020 12:25:25 -0800
Khem Raj <raj.khem at gmail.com> wrote:

> >   - Buildroot does not officially support distributions' cross
> >     toolchains, as they may contain extra libraries that are not
> >     accoutned for by Buildroot,
> 
> yes that's fine, this patch does not claim to support all of them
> either, it just
> makes the situation a bit better without regressing the supported usecases
> I think it helps lowering the build times on such distros for
> developers and improve
> first time experience

This has not clarified things for me. Most distributions allow extra
libraries to be installed in their cross-toolchains, i.e on Debian, you
can install libxml2, zlib, and zillions of other libraries
cross-compiled into your cross-compilation toolchain.

Then things are confusing for Buildroot: when it copies the sysroot, it
already contains more than just the C library... potentially libraries
that will conflict with libraries that Buildroot will build.

I don't see how this can work reliably.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list