[SRU][G, H][PATCH 3/3] UBUNTU: disable building bpf selftests (no VMLINUX_BTF)

Kamal Mostafa kamal at canonical.com
Mon Dec 14 22:00:40 UTC 2020


BugLink: https://bugs.launchpad.net/bugs/1908144

Disable selftests/bpf since it cannot be built without having built vmlinux
first, else build fails with either:

    Makefile:148: *** cannot find a vmlinux for VMLINUX_BTF at any of
    "{paths}".  Stop.

or this more cryptic variant:

    Error: failed to load BTF from format: No such file or directory

Reference: "UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux"
Reference: https://lore.kernel.org/bpf/20201210185233.28091-1-broonie@kernel.org/
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 debian/rules.d/0-common-vars.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
index 92597bf38b6b..4a04c41eedfd 100644
--- a/debian/rules.d/0-common-vars.mk
+++ b/debian/rules.d/0-common-vars.mk
@@ -275,4 +275,4 @@ custom_override = \
  $(shell if [ -n "$($(1)_$(2))" ]; then echo "$($(1)_$(2))"; else echo "$($(1))"; fi)
 
 # selftests that Ubuntu cares about
-ubuntu_selftests = breakpoints bpf cpu-hotplug efivarfs memfd memory-hotplug mount net ptrace seccomp timers powerpc user ftrace
+ubuntu_selftests = breakpoints cpu-hotplug efivarfs memfd memory-hotplug mount net ptrace seccomp timers powerpc user ftrace
-- 
2.17.1




More information about the kernel-team mailing list