bpf-headers: add a package with kernel headers for ebpf
authorFelix Fietkau <nbd@nbd.name>
Tue, 26 Oct 2021 18:41:22 +0000 (20:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 1 Nov 2021 15:39:09 +0000 (16:39 +0100)
commita537d06c72853c054c57d75af4074c1749e47947
tree09ae09d133cf8320c4b2fd995d064f043c844218
parent5ad663b7652e06e430209c2b3f5ab835181082e7
bpf-headers: add a package with kernel headers for ebpf

In order to genererate suitable kernel headers, a 5.10 kernel tree is
prepared with a default config for mips. The arch is forced to mips in
order to avoid issues with inline asm on various architectures in a way
that doesn't involve relying on the host toolchain/headers.
It also has the advantage of supporting both endian types

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/bpf.mk [new file with mode: 0644]
package/kernel/bpf-headers/Makefile [new file with mode: 0644]
package/kernel/bpf-headers/src/include/generated/bounds.h [new file with mode: 0644]