%general-entities; ]> Linux-Headers-&linux-headers-version; Linux-Headers <para>The Linux Headers package contains the <quote>sanitized</quote> kernel headers.</para> </sect2> <sect2 role="installation"> <title>Installation of Linux-Headers For years it has been common practice to use raw kernel headers (straight from a kernel tarball) in /usr/include, but over the last few years, the kernel developers have taken a strong stance that this should not be done. This gave birth to the Linux-Libc-Headers Project, which was designed to maintain an API stable version of the Linux headers. Recently this project stopped producing updates, so the Cross-LFS team started development on our own project to sanitize the headers. Install the header files that are common to all architectures: install -dv ${CLFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound} cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic cp -av include/linux/* ${CLFS}/usr/include/linux cp -av include/mtd/* ${CLFS}/usr/include/mtd cp -av include/net/* ${CLFS}/usr/include/net cp -av include/scsi/* ${CLFS}/usr/include/scsi cp -av include/sound/* ${CLFS}/usr/include/sound Install the header files that are specific to this architecture: cp -av include/asm-arm/* ${CLFS}/usr/include/asm Make sure the users can read the headers: find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \; find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \; Contents of Linux-Headers Installed headers /usr/include/{asm,linux}/*.h Short Descriptions /usr/include/{asm,linux}/*.h The Linux API headers /usr/include/{asm,linux}/*.h