Skip to content

Two fixes for make kselftest TARGETS=bpf

Ilya Leoshkevich bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools/bpf: Don't use $(COMPILE.c)tools/bpf/Makefile tools/bpf/bpftool/Makefile+7 -70 replies
2/2selftests/bpf: Add a default $(CXX) valuetools/testing/selftests/bpf/Makefile+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf 0/2] Two fixes for make kselftest TARGETS=bpf

While the primary documented way to run BPF tests is by invoking make in tools/testing/selftests/bpf, kselftest documentation implies that make kselftest TARGETS=bpf from the top directory should work as well. This patch series contains two fixes that were neccesary to make it run:

- Patch 1: $(COMPILE.c) -> $(CC) $(CFLAGS) -c
- Patch 2: Add CXX=$(CROSS_COMPILE)g++ default value

Ilya Leoshkevich (2):
tools/bpf: Don't use $(COMPILE.c)
selftests/bpf: Add a default $(CXX) value

 tools/bpf/Makefile                   | 6 +++---
 tools/bpf/bpftool/Makefile           | 8 ++++----
 tools/testing/selftests/bpf/Makefile | 1 +
 3 files changed, 8 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.4