Skip to content

Commit

Permalink
fix(libbpf): enable libbpf local build
Browse files Browse the repository at this point in the history
This commit enables local build of kepler with libbpf.

Additional packages required to build: libbpf-devel libbpf-static

Signed-off-by: Vimal Kumar <vimalkum@vimalkum-thinkpadp1gen4i.remote.csb>
Signed-off-by: Vimal Kumar <vimal78@gmail.com>
  • Loading branch information
Vimal Kumar authored and rootfs committed Nov 13, 2023
1 parent f60f73e commit 2b9d328
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 2b9d328

Please sign in to comment.