2 Jun
2024
2 Jun
'24
16:35
On 01.06.2024 04:13, David C. Rankin wrote:
Devs,
Building kernel modules on an old 15.4 install, I get the warning:
Skipping BTF generation for /home/david/dev/src-c/tmp/tst/kmgpio/gpioblink.ko due to unavailability of vmlinux
Tracking the issue down, I ended up creating the symlink in the kernel source directory linux-5.14.21-150400.24.100-obj/x86_64/default:
# ln -s /sys/kernel/btf/vmlinux
The build proceeds fine then. My question is "is this normal to have to manually create the vmlinux symlink, and if not how should it be properly handled?"
It is normal for upstream kernel which allows building of external modules without building of vmlinux first. For openSUSE I guess you could try bug report.