[Buildroot] glibc and --enable-kernel

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Jan 28 08:36:18 UTC 2016


Sam,

On Thu, 28 Jan 2016 13:55:37 +1100, Sam Bobroff wrote:

> > Ah, so you're working on PowerPC 64, great! We have a toolchain build
> > problem that I reported on Power PC 64, when building for Power 8:
> > 
> >   http://lists.busybox.net/pipermail/buildroot/2016-January/150338.html
> > 
> > If you have some time to look at it, it would be great.
> 
> No problem, I've replied in that thread :-)

Seen that, thanks!

> Ok that is certainly easier and works for me, so I'll post a patch :-)
> 
> I'm curious tho: when I hacked up some test code I used
> BR2_DEFAULT_KERNEL_HEADERS (which seems to have the same value) but I must
> confess I don't understand the implications of choosing between
> BR2_DEFAULT_KERNEL_HEADERS or BR2_TOOLCHAIN_HEADERS_AT_LEAST. Could you explain
> the difference so I don't have to read so much Make code? ;-)

There would be no real difference between the two for your use case.

BR2_DEFAULT_KERNEL_HEADERS is a string that contains the version number
of the Linux kernel sources chosen in the linux-headers package. It
would contain things like 3.2.76, 4.3.4, etc. or a user-specified
kernel version. It would have worked all fine for your case.

BR2_TOOLCHAIN_HEADERS_AT_LEAST is a string that exists for both the
internal and external toolchains, and which indicates the "series" of
the kernel headers (i.e just 3.2, 3.4, 4.0, etc.).

The only reason that may encourage you to use
BR2_TOOLCHAIN_HEADERS_AT_LEAST instead of BR2_DEFAULT_KERNEL_HEADERS is
an upcoming patch from Yann E. Morin (already submitted but not merged
yet), which allows to tell Buildroot to use the kernel version
specified in the "Kernel" menu as the version for the kernel headers.
In this case, I believe BR2_DEFAULT_KERNEL_HEADERS will not be correct,
while BR2_TOOLCHAIN_HEADERS_AT_LEAST will be.

Best regards,

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



More information about the buildroot mailing list