FS#79220 - Building kernel headers without CONFIG_DEBUG_INFO_BTF_MODULES fails
Attached to Project:
Arch Linux
Opened by jan luca (jl2) - Thursday, 27 July 2023, 17:57 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 27 July 2023, 18:20 GMT
Opened by jan luca (jl2) - Thursday, 27 July 2023, 17:57 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 27 July 2023, 18:20 GMT
|
Details
Description:
When building a kernel via the ABS and without CONFIG_DEBUG_INFO_BTF_MODULES, then this line in the PKGBUILD breaks: # required when DEBUG_INFO_BTF_MODULES is enabled install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids due to the file 'tools/bpf/resolve_btfids/resolve_btfids' not existing, which appears only to be built depending on the config option. This can be fixed by just commenting out the line or with a condition to check for the config: if grep -q CONFIG_DEBUG_INFO_BTF_MODULES=y .config; then install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids fi https://bbs.archlinux.org/viewtopic.php?id=287030 Steps to reproduce: - build a kernel without CONFIG_DEBUG_INFO_BTF_MODULES - you'll get an error saying that tools/bpf/resolve_btfids/resolve_btfids doesn't exist and it will fail |
This task depends upon