1
0
Fork 0
forked from mirror/openwrt
openwrt/package
Christian Marangi 5acc4f919c
xdp-tools: fix compilation wrongly using host header
Currently it's needed to have gcc-multilib on the host to correctly
compile xdp-tools. This is wrong and means that we are using host header
to compile a tool.

By some searching in how the makefile works it was discovered that
BPF_CFLAGS were not used and required to be appended to config.mk

Only one single header was added but we should include each BPF_CFLAGS
from bpf.mk. To make this some patching to bpf-header were required and
some patches to xdp-tools were required.
Also it's needed to pass the correct target to BPF_CFLAGS.

With the following changes xdp-tools can correctly compile with each
header from bpf-headers and should not use any host header.

Co-Developed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/11825
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-05-01 19:11:34 +02:00
..
base-files base-files: Add new functions for ath11k caldata 2024-04-23 22:35:57 +02:00
boot mediatek: switch to fitblk for JDCloud RE-CP-03 2024-04-30 03:28:13 +01:00
devel perf: fix build on PowerPC 2024-04-26 15:19:48 +03:00
firmware ipq-wifi: correct PKG_MIRROR_HASH 2024-04-27 23:29:48 +02:00
kernel bpf-headers: fix use of netlink.h header 2024-05-01 19:11:33 +02:00
libs mbedtls: Remove Kconfig options removed from mbedtls 3.6.0 2024-04-29 01:32:36 +02:00
network xdp-tools: fix compilation wrongly using host header 2024-05-01 19:11:34 +02:00
system procd: make mDNS TXT record parsing more solid 2024-04-29 23:24:58 +02:00
utils ucode: fix ubus defer when running from within eloop (integrated with uloop) 2024-05-01 19:00:21 +02:00
Makefile build: do not depend on $(STAGING_DIR)/.prepared when in SDK 2024-03-04 23:45:15 +01:00