File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,12 @@ xdp_features.skel.h-deps := xdp_features.bpf.o
516
516
LINKED_BPF_OBJS := $(foreach skel,$(LINKED_SKELS ) ,$($(skel ) -deps) )
517
517
LINKED_BPF_SRCS := $(patsubst % .bpf.o,% .c,$(LINKED_BPF_OBJS ) )
518
518
519
+ HEADERS_FOR_BPF_OBJS := $(wildcard $(BPFDIR ) /* .bpf.h) \
520
+ $(addprefix $(BPFDIR ) /, bpf_core_read.h \
521
+ bpf_endian.h \
522
+ bpf_helpers.h \
523
+ bpf_tracing.h)
524
+
519
525
# Set up extra TRUNNER_XXX "temporary" variables in the environment (relies on
520
526
# $eval()) and pass control to DEFINE_TEST_RUNNER_RULES.
521
527
# Parameters:
@@ -566,8 +572,7 @@ $(TRUNNER_BPF_OBJS): $(TRUNNER_OUTPUT)/%.bpf.o: \
566
572
$(TRUNNER_BPF_PROGS_DIR ) /%.c \
567
573
$(TRUNNER_BPF_PROGS_DIR ) /* .h \
568
574
$$(INCLUDE_DIR ) /vmlinux.h \
569
- $(wildcard $(BPFDIR ) /bpf_* .h) \
570
- $(wildcard $(BPFDIR ) /* .bpf.h) \
575
+ $(HEADERS_FOR_BPF_OBJS ) \
571
576
| $(TRUNNER_OUTPUT ) $$(BPFOBJ )
572
577
$$(call $(TRUNNER_BPF_BUILD_RULE ) ,$$< ,$$@ , \
573
578
$(TRUNNER_BPF_CFLAGS ) \
You can’t perform that action at this time.
0 commit comments