5.5. Linux-Headers-2.6.24.7

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

5.5.1. Installation of Linux-Headers

For this step you will need the kernel tarballs.

The following patch includes spitfire.h outside of kernel space in elf.h. It also adds spitfire.h to the list of headers installed on the system.

patch -Np1 -i ../linux-2.6.24.7-elf_spitfire_fix-1.patch

Install the header files that are common to all architectures:

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

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