Skip to content

Commit

Permalink
Merge pull request #1032 from vimalk78/build-libbpf-local
Browse files Browse the repository at this point in the history
fix(Makefile): enable `libbpf` based local build
  • Loading branch information
sthaha authored Oct 31, 2023
2 parents edbf394 + e15c80e commit 66d37f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ GOENV := GOOS=$(GOOS) GOARCH=$(GOARCH)

ifdef ATTACHER_TAG
ATTACHER_TAG := $(ATTACHER_TAG)
ifeq ($(ATTACHER_TAG),libbpf)
LIBBPF_HEADERS := /usr/include/bpf
KEPLER_OBJ_SRC := $(SRC_ROOT)/bpfassets/libbpf/bpf.o/$(GOARCH)_kepler.bpf.o
LIBBPF_OBJ := /usr/lib64/libbpf.a
endif
else
# auto determine
BCC_TAG :=
Expand Down

0 comments on commit 66d37f4

Please sign in to comment.