5.4. Linux-Headers-3.4.17

Le noyau Linux contient une cible make qui installe des en-têtes du noyau « propres ».

5.4.1. Installation de Linux-Headers

Pour cette étape, vous aurez besoin de l'archive tar du noyau.

Installez les fichiers d'en-tête du noyau :

install -dv /tools/include
make mrproper
make ARCH=i386 headers_check
make ARCH=i386 INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include

The meaning of the make commands:

make mrproper

S'assure que le répertoire des sources du noyau est propre.

make ARCH=i386 headers_check

Sanitizes the raw kernel headers so that they can be used by userspace programs.

make ARCH=i386 INSTALL_HDR_PATH=dest headers_install

Normally the headers_install target removes the entire destination directory (default /usr/include) before installing the headers. To prevent this, we tell the kernel to install the headers to a directory inside the source dir.

Les détails sur ce paquet sont situés dans Section 10.5.2, « Contenu de Linux-Headers. »