5.3. Linux-3.14.21 Headers

The Linux Kernel contains a make target that installs “sanitized” kernel headers.

5.3.1. Installation of Linux Headers

[Note]

Note

For this step you will need to unpack the kernel tarball (linux-3.14.tar.xz) and cd into its source directory before entering the commands on this page.

Apply the latest Linux sublevel patch:

xzcat ../patch-3.14.21.xz | patch -Np1 -i -

Install the kernel header files:

make mrproper
make ARCH=powerpc headers_check
make ARCH=powerpc INSTALL_HDR_PATH=/tools headers_install

The meaning of the make commands:

make mrproper

Ensures that the kernel source dir is clean.

make ARCH=powerpc headers_check

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

make ARCH=powerpc INSTALL_HDR_PATH=/tools headers_install

This will install the kernel headers into /tools/include.

Details on this package are located in Section 10.5.2, “Contents of Linux Headers.”