Difference between revisions of "Bering-uClibc 7.x - Developer Guide - Providing kernel headers"

From bering-uClibc
Jump to: navigation, search
 
Line 9: Line 9:
 
Building the kernel headers tarball is different from building all other Packages.
 
Building the kernel headers tarball is different from building all other Packages.
  
The kernel headers are a requirement to build the toolchain.  
+
The kernel headers are needed to build the toolchain and can be found in <code class="filename">repo/toolchain</code>.
The command
+
To create the tarball run in your buidtool root:
  
<code class="filename">./buildtool.pl headers linux</code>
+
./buildtool.pl headers linux  
 +
cd headers/include
 +
tar cvfJ  ../../repo/toolchain/linux-headers.tar.xz *
  
builds those headers in the directory <code class="filename">headers</code> in the buildtool root directory and creates a link in <code class="filename">repo/toolchain/linux-headers</code>.
+
Please note, that toolchains can support different kernel versions, which may be useful especially in transitions to a newer versions, where not all toolchains will be supported immediately. It is advised to keep the kernel headers for the oldest kernel a toolchain uses.  
 
+
As we are moving away from the tarball code containers to a true git environment creating these tarballs has become obsolete.
+
 
+
'''Please note, that toolchains can support different kernel versions, which may be useful especially in transitions to newer versions, where not all toolchains will be supported immediately. It is advised to keep the kernel headers for the oldest kernel a toolchain uses.'''
+
 
----
 
----
 
{| summary="Navigation footer" width="100%"
 
{| summary="Navigation footer" width="100%"

Latest revision as of 16:02, 4 March 2024

Providing kernel headers
Prev Bering-uClibc 7.x - Developer Guide Next

Building the kernel headers tarball is different from building all other Packages.

The kernel headers are needed to build the toolchain and can be found in repo/toolchain. To create the tarball run in your buidtool root:

./buildtool.pl headers linux 
cd headers/include
tar cvfJ  ../../repo/toolchain/linux-headers.tar.xz *

Please note, that toolchains can support different kernel versions, which may be useful especially in transitions to a newer versions, where not all toolchains will be supported immediately. It is advised to keep the kernel headers for the oldest kernel a toolchain uses.


Prev Up Next