mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
Fix xdp-tools submodule to work with libbpf submodule
Update the version of xdp-tools to pull in some configure changes that makes interoperating between a libbpf submodule and an xdp-tools submodule work better, and set the LIBBPF_UNBUILT variable in the top-level configure to enables this support. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -192,7 +192,9 @@ check_libxdp()
|
||||
echo "SYSTEM_LIBXDP:=n" >> $CONFIG
|
||||
if [ "$SUBMODULE_LIBBPF" -eq "1" ]; then
|
||||
echo "Configuring libxdp to use our libbpf submodule"
|
||||
(export LIBBPF_DIR="$(readlink -m lib/libbpf)" LIBBPF_INCLUDE_DIR="$(readlink -m lib/install/include)";
|
||||
(export LIBBPF_DIR="$(readlink -m lib/libbpf)" \
|
||||
LIBBPF_INCLUDE_DIR="$(readlink -m lib/install/include)" \
|
||||
LIBBPF_UNBUILT=1;
|
||||
cd lib/xdp-tools; ./configure)
|
||||
else
|
||||
echo "Configuring libxdp without our libbpf"
|
||||
|
Reference in New Issue
Block a user