Bug#1027304: linux-kbuild-6.0: missing `resolve_btfids` and some scripts
Package: linux-kbuild-6.0
Version: 6.0.12-1~bpo11+1
Severity: important
Tags: patch
X-Debbugs-Cc: ur4t@protonmail.com
Dear Maintainer,
I tried to build my out-of-tree kernel module and noticed a message:
`Skipping BTF generation for PATH_TO_KO due to unavailability of vmlinux`.
After copying `/sys/kernel/btf/vmlinux` to corresponding position and with
`dwarves` installed, building the kernel module throws a error:
`/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found`.
Besides I find that some useful scripts are not included in `linux-kbuild`
package such as `clang-tools/gen_compile_commands.py`, and I had to copy
it from kernel source tree.
I patched build scripts to contain those components locally with
following patches.
-- System Information:
Debian Release: 11.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-0.deb11.2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-kbuild-6.0 depends on:
ii libc6 2.31-13+deb11u5
ii libelf1 0.183-1
ii libssl1.1 1.1.1n-0+deb11u3
linux-kbuild-6.0 recommends no packages.
linux-kbuild-6.0 suggests no packages.
-- no debconf information
Reply to: