]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/resolve_btfids: Fix build when cross compiling kernel with clang.
authorSuleiman Souhlal <suleiman@google.com>
Fri, 6 Jun 2025 07:45:38 +0000 (16:45 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:24 +0000 (11:07 +0100)
commit30d3398e88abd206e36bd620bc4980907e94be57
treef5b47b37c549e5677f0cd7b035ee3cb7c8a4bd4a
parentb49429fd1eba5fd3a9bd8bf7e8e5f95ddc4a7f1f
tools/resolve_btfids: Fix build when cross compiling kernel with clang.

commit a298bbab903e3fb4cbe16d36d6195e68fad1b776 upstream.

When cross compiling the kernel with clang, we need to override
CLANG_CROSS_FLAGS when preparing the step libraries.

Prior to commit d1d096312176 ("tools: fix annoying "mkdir -p ..." logs
when building tools in parallel"), MAKEFLAGS would have been set to a
value that wouldn't set a value for CLANG_CROSS_FLAGS, hiding the
fact that we weren't properly overriding it.

Fixes: 56a2df7615fa ("tools/resolve_btfids: Compile resolve_btfids as host program")
Signed-off-by: Suleiman Souhlal <suleiman@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/bpf/20250606074538.1608546-1-suleiman@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/bpf/resolve_btfids/Makefile