net/i40e: fix missing deps for avx2 code in meson
Subsystems (2)
PATCH 1/1 net/i40e: fix missing deps for avx2 code in meson
The AVX2 code path includes files from the ethdev, hash and kvargs libs. These are not listed as dependencies in the case where AVX2 is not in the default instruction set for the build e.g. machine=nehalem. This leads to compiler errors as the header files needed cannot be found.
Fixes e940646b20fa ("drivers/net: build Intel NIC PMDs with meson")
Signed-off-by Bruce Richardson <[email protected]>
--- drivers/net/i40e/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/meson.build +2 -1
@@ -34,7 +34,8 @@ if arch_subdir == 'x86' elif cc.has_argument('-mavx2') i40e_avx2_lib = static_library('i40e_avx2_lib', 'i40e_rxtx_vec_avx2.c', - dependencies: static_rte_eal, + dependencies: [static_rte_ethdev, + static_rte_kvargs, static_rte_hash], c_args: '-mavx2') objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c') endif
Signature · 1 line
2.14.3
Quoted 9 lines · Bruce Richardson
The AVX2 code path includes files from the ethdev, hash and kvargs libs. These are not listed as dependencies in the case where AVX2 is not in the default instruction set for the build e.g. machine=nehalem. This leads to compiler errors as the header files needed cannot be found.
Fixes e940646b20fa ("drivers/net: build Intel NIC PMDs with meson")Signed-off-by Bruce Richardson <[email protected]>---
Bug fix applied to dpdk-next-build
/Bruce