net/af_xdp: make clear which libxdp version is required
Include checked libxdp version in driver build skip reason. Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Reviewed-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
This commit is contained in:
parent
50b855fc47
commit
f76dc44ded
@ -9,7 +9,8 @@ endif
|
||||
|
||||
sources = files('rte_eth_af_xdp.c')
|
||||
|
||||
xdp_dep = dependency('libxdp', version : '>=1.2.2', required: false, method: 'pkg-config')
|
||||
libxdp_ver = '>=1.2.2'
|
||||
xdp_dep = dependency('libxdp', version : libxdp_ver, required: false, method: 'pkg-config')
|
||||
bpf_dep = dependency('libbpf', required: false, method: 'pkg-config')
|
||||
if not bpf_dep.found()
|
||||
bpf_dep = cc.find_library('bpf', required: false)
|
||||
@ -45,11 +46,11 @@ if cc.has_header('linux/if_xdp.h')
|
||||
endif
|
||||
else
|
||||
build = false
|
||||
reason = 'missing dependency, "libxdp" or "libbpf <= v0.6.0"'
|
||||
reason = 'missing dependency, "libxdp ' + libxdp_ver + '" or "libbpf <= v0.6.0"'
|
||||
endif
|
||||
else
|
||||
build = false
|
||||
reason = 'missing dependency, "libxdp" and "libbpf"'
|
||||
reason = 'missing dependency, "libxdp ' + libxdp_ver + '" and "libbpf"'
|
||||
endif
|
||||
else
|
||||
build = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user