]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Allow skipping docs compilation
authorMykyta Yatsenko <yatsenko@meta.com>
Sat, 10 May 2025 00:24:50 +0000 (01:24 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 12 May 2025 22:18:46 +0000 (15:18 -0700)
commit3a320ed325488d07081461663ac9243293006080
tree2cc2b7b87dacc588c668b2d1914a385596fd3b32
parent149e0cf4c99c3ed474b9179bdf06bfa79c22ab5f
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 <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250510002450.365613-1-mykyta.yatsenko5@gmail.com
tools/testing/selftests/bpf/Makefile