mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
5acc4f919c
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> |
||
---|---|---|
.. | ||
010-configure-respect-LDFLAGS.patch | ||
020-libxdp-Use-__noinline__-reserved-attribute-for-XDP-d.patch | ||
021-headers-xdp-drop-vlan_hdr-as-already-defined.patch | ||
022-xdp-dump-add-missing-perf_event-include-for-bpf-and-.patch | ||
023-libxdp-fix-compilation-on-multiarch-systems.patch | ||
024-lib-allow-overwriting-W-flags-via-BPF_CFLAGS.patch | ||
025-Add-BPF_LDFLAGS-to-allow-overwriting-llc-s-march-arg.patch |