Skip to content

Commit 3a320ed

Browse files
mykyta5anakryiko
authored andcommitted
selftests/bpf: Allow skipping docs compilation
Currently rst2man is required to build bpf selftests, as the tool is used by Makefile.docs. rst2man may be missing in some build environments and is not essential for selftests. It makes sense to allow user to skip building docs. This patch adds SKIP_DOCS variable into bpf selftests Makefile that when set to 1 allows skipping building docs, for example: make -C tools/testing/selftests TARGETS=bpf SKIP_DOCS=1 Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 149e0cf commit 3a320ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ $(CROSS_BPFTOOL): $(wildcard $(BPFTOOLDIR)/*.[ch] $(BPFTOOLDIR)/Makefile) \
358358
prefix= DESTDIR=$(SCRATCH_DIR)/ install-bin
359359
endif
360360

361+
ifneq ($(SKIP_DOCS),1)
361362
all: docs
363+
endif
362364

363365
docs:
364366
$(Q)RST2MAN_OPTS="--exit-status=1" $(MAKE) $(submake_extras) \

0 commit comments

Comments
 (0)