linux-headers
- Provide before
musl-headersin stage 1 (toolchain) to prevent overwriting libc headers
Prepare
Section titled “Prepare”mrproperrequiresARCH
Package
Section titled “Package”headers_installrequiresrsyncand removes kernel headers cmd files by defaultINSTALL_HDR_PATH="$cross"/usronly works withheaders_installtarget (notheaders)find usr/include ! -name '*.h' -type f -deleteremoves all.cmdfiles,.gitignore,headers_check.plandMakefile- Remove
usr/include/drmto use headers fromlibdrm
- The
headers_checktarget runs a few trivial sanity checks on the headers before install- checks if a header includes something nonexistent
- checks if the declarations inside the headers are sane
- checks if kernel internals are leaked into user space
- not that useful for release tarballs but could come in handy when working with kernel git trees