summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRicardo B. Marlière <rbm@suse.com>2026-06-02 16:02:50 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-06-06 00:20:57 +0300
commita6850fa388f6f6ff365b3b72cb71e6d9a8a614ed (patch)
tree22a288849d45021f16c65383ece8d26fd67c7ca2 /include
parent4a7910ee060d8ce55612f5b3cc267f3a265a3cec (diff)
downloadlinux-a6850fa388f6f6ff365b3b72cb71e6d9a8a614ed.tar.xz
selftests/bpf: Add BPF_STRICT_BUILD toggle
Distro kernels often lack BTF types or kernel features required by some BPF selftests, causing the build to abort on the first failure and preventing the remaining tests from running. Add BPF_STRICT_BUILD (default 1) to control build failure tolerance. When set to 0, the PERMISSIVE make variable is assigned a non-empty value that subsequent Makefile rules use to make individual build steps non-fatal. When set to 1 (the default), the build fails on any error, preserving the existing behavior for CI and direct builds. Users can opt in to permissive mode on the command line: make -C tools/testing/selftests \ TARGETS=bpf SKIP_TARGETS= BPF_STRICT_BUILD=0 Suggested-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Ricardo B. Marlière <rbm@suse.com> Link: https://lore.kernel.org/r/20260602-selftests-bpf_misconfig-v12-1-27f898b3ba26@suse.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions