mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-26 03:09:07 +08:00
AF_XDP: add xsk.{c,h} to Makefile and fix build
This patch makes sure we build AF_XDP-related code as part of libbpf. This also required copying few uapi/linux headers and adding few used definitions in include headers. Signed-off-by: Andrii Nakryiko <andriin@fb.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
7a431904c8
commit
cb658e9724
2
src/.gitignore
vendored
Normal file
2
src/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.o
|
||||
*.a
|
||||
@@ -20,7 +20,7 @@ ALL_CFLAGS += $(CFLAGS)
|
||||
OBJDIR ?= .
|
||||
|
||||
OBJS := $(addprefix $(OBJDIR)/,bpf.o btf.o libbpf.o libbpf_errno.o netlink.o \
|
||||
nlattr.o str_error.o libbpf_probes.o)
|
||||
nlattr.o str_error.o libbpf_probes.o bpf_prog_linfo.o xsk.o)
|
||||
|
||||
LIBS := $(OBJDIR)/libbpf.a
|
||||
ifdef BUILD_SHARED
|
||||
|
||||
Reference in New Issue
Block a user