Install vmlinux.h

As requested by Christian, to build downstream BPF programs for the
kernel.

See: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2050083
This commit is contained in:
Jan Alexander Steffens (heftig) 2024-02-21 00:27:25 +01:00
parent 59effaccc0
commit 3d3514fd07
No known key found for this signature in database
GPG Key ID: B8AC08600F108CDF
1 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ prepare() {
build() { build() {
cd $_srcname cd $_srcname
make all make all
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
make htmldocs make htmldocs
} }
@ -134,7 +135,7 @@ _package-headers() {
echo "Installing build files..." echo "Installing build files..."
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
localversion.* version vmlinux localversion.* version vmlinux tools/bpf/bpftool/vmlinux.h
install -Dt "$builddir/kernel" -m644 kernel/Makefile install -Dt "$builddir/kernel" -m644 kernel/Makefile
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
cp -t "$builddir" -a scripts cp -t "$builddir" -a scripts