2
1
Fork
You've already forked kernel-headers
0
linux kernel headers (sanitized for use with musl)
  • C 99.9%
Find a file
rofl0r eda76135ba experimental bump to 6.12.77
this includes all archs the kernel supports, not just those supported
by musl.
this update is untested and may be broken in some scenarios, but
manual inspection of the diff looks as if it will be mostly OK.
2026年03月21日 21:34:30 +00:00
alpha/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
arc/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
arch add support for s390 and m68k 2020年08月13日 15:01:01 +01:00
arm/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
arm64/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
csky/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
generic/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
hexagon/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
loongarch/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
m68k/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
microblaze/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
mips/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
nios2/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
openrisc/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
parisc/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
patches Update to 4.19.88 2019年12月12日 01:50:07 -08:00
powerpc/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
riscv/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
s390/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
sh/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
sparc/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
test add test for if.c 2019年05月27日 15:44:58 +01:00
tools use musl's install.sh instead of install 2014年07月20日 22:47:14 +02:00
um/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
x86/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
xtensa/include experimental bump to 6.12.77 2026年03月21日 21:34:30 +00:00
aarch64 add aarch64 aka arm64 (kernel calls it that way) arch headers 2014年03月02日 14:50:16 +01:00
create-dist.sh create-dist: use linux-headers prefix 2019年08月17日 02:51:14 +01:00
i386 use x86 as the directory name in line with kernel, symlink i386 and x86_64 to this 2014年01月17日 16:23:50 +00:00
Makefile Makefile: fix semantics of INSTALL_HDR_PATH 2019年08月17日 02:25:34 +01:00
or1k add or1k aka openrisc 2014年09月16日 22:22:10 +03:00
ppc64le add ppc64le, symlink to powerpc 2020年08月13日 13:05:33 +01:00
README.md README: fix 2f30 mirror url 2021年07月27日 12:27:43 +01:00
riscv32 Add RISC-V headers 2023年08月08日 19:16:43 +01:00
riscv64 Add RISC-V headers 2023年08月08日 19:16:43 +01:00
test.sh test.sh: do not compile the allheaders beast 2019年05月25日 20:17:46 +01:00
UPDATE.sh UPDATE.sh: fix for kernels > 5.2-rc1 2026年03月21日 21:34:25 +00:00
x32 add x32, symlink to x86 2014年01月20日 17:28:31 +01:00
x86_64 use x86 as the directory name in line with kernel, symlink i386 and x86_64 to this 2014年01月17日 16:23:50 +00:00
x86_64-x32 add support for full x32 arch identifier 2019年08月16日 00:13:59 +01:00

sabotage's linux kernel headers

linux headers are often broken for userspace, and downloading the entire kernel tarball just to get the headers is overkill.

thus we provide our own copy for the archs supported by sabotage.

some minor issues are fixed, plus libc-compat.h is patched to offer the same level of support for musl libc as the vanilla headers offer for glibc.

we currently use the headers of kernel 4.19.88, which is a recent long-term-support kernel. There are previous 4.4.2, 3.3.4, and 3.12.6 branches.

Installation:

make ARCH=xxx prefix=/usr DESTDIR=/opt/package install

where ARCH is the name of one of the arch-specific directories. for example, i386, x86_64, x32, powerpc, mips, microblaze.

Download mirrors for release tarballs:

Adding a new arch:

export ARCH=xxx
tar xf linux-4.4.2.tar.xz && cd linux-4.4.2
CC=false make V=1 ARCH=$ARCH INSTALL_HDR_PATH=dest headers_install
rm dest/include/asm/.*install*
cd ..
cp -r sh $ARCH
rm -rf $ARCH/include/asm
cp -r linux-4.4.2/dest/include/asm $ARCH/include
rm -rf linux-4.4.2