From: Viktor Malik on gitlab.com Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2490 Commit 56a2df7615fa changed the `resolve_btfids` tool to be built as a host program. This causes selftests compilation error as we override `HOSTCFLAGS` when calling `make` from the specfile, effectively supressing the effect of `HOSTCFLAGS` update in `tools/bpf/resolve_btfids/Makefile`. See [1] for details why this happens. This fixes the above error by passing `HOSTCGLAGS` and `HOSTLDFLAGS` through environment variables rather than through the make command. In addition, since `resolve_btfids` is now compiled as a host program, it shouldn't be included in the `kernel-devel` package as its arch could not match the target arch. Instead, this just adds its source files to the package so that it is built when running `make prepare`. [1] https://www.gnu.org/software/make/manual/html_node/Overriding.html Signed-off-by: Viktor Malik <vmalik@xxxxxxxxxx> --- redhat/kernel.spec.template | 3 ++- tools/bpf/resolve_btfids/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue