af_xdp: update af_xdp driver plugin to depend on libxdp
[vpp.git] / build / external / patches / xdp-tools_1.2.9 / 0002-libxdp-fix-asm-types.h-file-not-found-issue.patch
1 From 51ea3b590f5e0a6b34b5148af43996029fd60ac6 Mon Sep 17 00:00:00 2001
2 From: Yulong <yulong.pei@intel.com>
3 Date: Fri, 6 Jan 2023 07:46:10 +0000
4 Subject: [PATCH 2/2] libxdp: fix asm/types.h file not found issue
5
6 The file asm/types.h located in /usr/include/$(uname -m)-linux-gnu,
7 the path string already assigned to ARCH_INCLUDES when run xdp-tools
8 configure, so include ARCH_INCLUDES to CFLAGS and BPF_CFLAGS directly.
9
10 Signed-off-by: Yulong <yulong.pei@intel.com>
11 ---
12  lib/defines.mk | 4 ++--
13  1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/lib/defines.mk b/lib/defines.mk
16 index f134c43..515411c 100644
17 --- a/lib/defines.mk
18 +++ b/lib/defines.mk
19 @@ -40,8 +40,8 @@ endif
20  
21  DEFINES += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
22  
23 -CFLAGS += -std=gnu11 -Wextra -Werror $(DEFINES)
24 -BPF_CFLAGS += $(DEFINES) $(filter -ffile-prefix-map=%,$(CFLAGS))
25 +CFLAGS += -std=gnu11 -Wextra -Werror $(DEFINES) $(ARCH_INCLUDES)
26 +BPF_CFLAGS += $(DEFINES) $(filter -ffile-prefix-map=%,$(CFLAGS)) $(ARCH_INCLUDES)
27  
28  CONFIGMK := $(LIB_DIR)/../config.mk
29  LIBMK := Makefile $(CONFIGMK) $(LIB_DIR)/defines.mk $(LIB_DIR)/common.mk $(LIB_DIR)/../version.mk
30 -- 
31 2.25.1
32