From: Artem Savkov <asavkov(a)redhat.com>
redhat/spec: use tools_make when building bootstrap bpftool
Use tools_make macro instead of plain make to build bootstrap bpftool so
that CFLAGS/LDFLAGS are properly set.
Signed-off-by: Artem Savkov <asavkov(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2608,7 +2608,7 @@ BuildKernel() {
# zfcpdump build does not have btf anymore
if [ "$Variant" != "zfcpdump" ]; then
# Build the bootstrap bpftool to generate vmlinux.h
- make -C tools/bpf/bpftool bootstrap
+ %{tools_make} -C tools/bpf/bpftool bootstrap
tools/bpf/bpftool/bootstrap/bpftool btf dump file vmlinux format c >
$RPM_BUILD_ROOT/$DevelDir/vmlinux.h
fi
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2884