From 3d3514fd07be666183dee2636a8d62e2481c0cab Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Wed, 21 Feb 2024 00:27:25 +0100 Subject: [PATCH] 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 --- PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 8b7f015..8ff265e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -82,6 +82,7 @@ prepare() { build() { cd $_srcname make all + make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 make htmldocs } @@ -134,7 +135,7 @@ _package-headers() { echo "Installing build files..." 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/arch/x86" -m644 arch/x86/Makefile cp -t "$builddir" -a scripts