Move parsing_helpers.h into new include directory

Adjust makefile construct to use the new include direcory.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
Jesper Dangaard Brouer
2021-02-09 17:03:55 +01:00
parent d59095d39f
commit 5cf96508df
3 changed files with 6 additions and 3 deletions

View File

@@ -36,10 +36,10 @@ endif
# BPF-prog kern and userspace shares struct via header file: # BPF-prog kern and userspace shares struct via header file:
KERN_USER_H ?= $(wildcard common_kern_user.h) KERN_USER_H ?= $(wildcard common_kern_user.h)
CFLAGS += -I$(HEADER_DIR) -I$(LIB_DIR)/util $(EXTRA_CFLAGS) CFLAGS += -I$(INCLUDE_DIR) -I$(HEADER_DIR) -I$(LIB_DIR)/util $(EXTRA_CFLAGS)
BPF_CFLAGS += -I$(HEADER_DIR) $(EXTRA_CFLAGS) BPF_CFLAGS += -I$(INCLUDE_DIR) -I$(HEADER_DIR) $(EXTRA_CFLAGS)
BPF_HEADERS := $(wildcard $(HEADER_DIR)/bpf/*.h) $(wildcard $(HEADER_DIR)/xdp/*.h) BPF_HEADERS := $(wildcard $(HEADER_DIR)/bpf/*.h) $(wildcard $(INCLUDE_DIR)/xdp/*.h)
all: $(USER_TARGETS) $(BPF_OBJ) $(EXTRA_TARGETS) all: $(USER_TARGETS) $(BPF_OBJ) $(EXTRA_TARGETS)

View File

@@ -13,7 +13,10 @@ BPF_DIR_MNT ?=/sys/fs/bpf
BPF_OBJECT_DIR ?=$(LIBDIR)/bpf BPF_OBJECT_DIR ?=$(LIBDIR)/bpf
MAX_DISPATCHER_ACTIONS ?=10 MAX_DISPATCHER_ACTIONS ?=10
# headers/ dir contains include header files needed to compile BPF programs
HEADER_DIR = $(LIB_DIR)/../headers HEADER_DIR = $(LIB_DIR)/../headers
# include/ dir contains the projects own include header files
INCLUDE_DIR = $(LIB_DIR)/../include
TEST_DIR = $(LIB_DIR)/testing TEST_DIR = $(LIB_DIR)/testing
LIBBPF_DIR := $(LIB_DIR)/libbpf LIBBPF_DIR := $(LIB_DIR)/libbpf