diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-09-12 01:13:59 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-12 01:43:49 +0100 |
commit | f5d6ed3007cb04bfef388e986d3b148b609cb959 (patch) | |
tree | 35a7a263a9d9b242014cda3cb103c2fa40fa6ddd /package | |
parent | 60384d8a743666f8cbda6446b86067ef6246d032 (diff) | |
download | upstream-f5d6ed3007cb04bfef388e986d3b148b609cb959.tar.gz upstream-f5d6ed3007cb04bfef388e986d3b148b609cb959.tar.bz2 upstream-f5d6ed3007cb04bfef388e986d3b148b609cb959.zip |
xdp-tools: don't rely on host bpf headers
xdp-tools build currently breaks on build hosts which do not have
libbpf headers installed because the build system wrongly tries to
use the host's include path.
Properly pass path to libbpf headers to xdp-tools build system to
fix build e.g. on the buildbots.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/utils/xdp-tools/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/utils/xdp-tools/Makefile b/package/network/utils/xdp-tools/Makefile index 32f302543a..42a8a0695b 100644 --- a/package/network/utils/xdp-tools/Makefile +++ b/package/network/utils/xdp-tools/Makefile @@ -85,7 +85,6 @@ CONFIGURE_VARS += \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ CLANG="$(CLANG)" \ - BPF_CFLAGS="$(BPF_CFLAGS)" \ BPF_TARGET="$(BPF_TARGET)" \ LLC="$(LLVM_LLC)" @@ -93,6 +92,11 @@ MAKE_VARS += \ PREFIX=/usr \ RUNDIR=/tmp/run +define Build/Configure + $(call Build/Configure/Default) + echo "BPF_CFLAGS += -I$(BPF_HEADERS_DIR)/tools/lib" >> $(PKG_BUILD_DIR)/config.mk +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/xdp $(CP) $(PKG_INSTALL_DIR)/usr/include/xdp/*.h $(1)/usr/include/xdp/ |