[Buildroot] Finding the linux kernel headers version of a gcc cross toolchain

Baruch Siach baruch at tkos.co.il
Sat Apr 18 19:48:53 UTC 2020


Hi L-C,

On Fri, Apr 17 2020, Laurentiu-Cristian Duca wrote:
> Hello buildroot community,
>
>   When choosing an external toolchain for Buildroot
> we must specify the kernel headers version used to build the
> corresponding toolchain.
> Can you please tell me how to detect the kernel headers version of the
> external toolchain?

Look for the linux/version.h header file from your toolchain. Use the
LINUX_VERSION_CODE and KERNEL_VERSION macros that this file defines to
find the kernel headers version.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the buildroot mailing list