Skip to content

Commit

Permalink
bpf: Disable failing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
webvictim authored and russjones committed Jun 2, 2021
1 parent c5f3f56 commit 080decb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ endif
# BPF support will only be built into Teleport if headers exist at build time.
BPF_MESSAGE := "without BPF support"

# BPF cannot currently be compiled on ARMv7 due to this bug: https://github.com/iovisor/gobpf/issues/272
# ARM64 builds are not affected.
# We don't compile BPF for anything except regular non-FIPS linux/amd64 for now, as other builds
# have compilation issues that require fixing.
with_bpf := no
ifneq ("$(ARCH)","arm")
ifeq ("$(OS)","linux")
ifeq ("$(ARCH)","amd64")
ifeq ("$(FIPS)","")
ifneq ("$(wildcard /usr/include/bpf/libbpf.h)","")
with_bpf := yes
BPF_TAG := bpf
Expand All @@ -104,6 +106,8 @@ CLANG_BPF_SYS_INCLUDES = $(shell $(CLANG) -v -E - </dev/null 2>&1 \
CGOFLAG = CGO_ENABLED=1 CGO_LDFLAGS="-Wl,-Bstatic -lbpf -Wl,-Bdynamic"
endif
endif
endif
endif

# On Windows only build tsh. On all other platforms build teleport, tctl,
# and tsh.
Expand Down

0 comments on commit 080decb

Please sign in to comment.