net/ipn3ke, raw/ifpga: fix meson build
Subsystems (2)
PATCH 1/1 net/ipn3ke, raw/ifpga: fix meson build
The ipn3ke driver and the ifpga driver had circular dependencies on each other, meaning that neither could be built with meson. Fix this by:
* setting the build order of net and raw to match that in makefiles
* removing the dependency from the net driver on the rawdev one
* fixing the dependency names in the rawdev driver meson.build file
--- drivers/meson.build | 4 ++-- drivers/net/ipn3ke/meson.build | 4 +++- drivers/raw/ifpga/meson.build | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-)
drivers/meson.build +2 -2
@@ -9,8 +9,8 @@ endif dpdk_driver_classes = ['common', 'bus', 'mempool', # depends on common and bus. - 'raw', # depends on common and bus. - 'net', # depends on common, bus, mempool and raw. + 'net', # depends on common, bus, mempool + 'raw', # depends on common, bus and net. 'crypto', # depends on common, bus and mempool (net in future). 'compress', # depends on common, bus, mempool. 'event', # depends on common, bus, mempool and net.
drivers/net/ipn3ke/meson.build +3 -1
@@ -21,9 +21,11 @@ endif if build allow_experimental_apis = true + includes += include_directories('../../raw/ifpga') + sources += files('ipn3ke_ethdev.c', 'ipn3ke_representor.c', 'ipn3ke_tm.c', 'ipn3ke_flow.c') - deps += ['bus_ifpga', 'sched', 'pmd_i40e', 'rawdev', 'rawdev_ifpga'] + deps += ['bus_ifpga', 'ethdev', 'sched'] endif
drivers/raw/ifpga/meson.build +1 -1
@@ -15,7 +15,7 @@ if build objs = [base_objs] deps += ['ethdev', 'rawdev', 'pci', 'bus_pci', 'kvargs', - 'bus_vdev', 'bus_ifpga', 'net', 'i40e', 'ipn3ke'] + 'bus_vdev', 'bus_ifpga', 'net', 'pmd_i40e', 'pmd_ipn3ke'] ext_deps += dep sources = files('ifpga_rawdev.c')
Signature · 1 line
2.23.0
Quoted 79 lines
-----Original Message-----
From: Richardson, Bruce <[email protected]>
Sent: Friday, December 13, 2019 1:29
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Xu, Rosen <[email protected]>; Zhang, Tianfei <[email protected]>; [email protected]
Subject: [PATCH] net/ipn3ke, raw/ifpga: fix meson buildThe ipn3ke driver and the ifpga driver had circular dependencies on each other, meaning that neither could be built with meson. Fix this by:
* setting the build order of net and raw to match that in makefiles
* removing the dependency from the net driver on the rawdev one
* fixing the dependency names in the rawdev driver meson.build fileFixes 8418c92811b4 ("net/ipn3ke: remove configuration for i40e portbonding")
Fixes e1defba4cf66 ("raw/ifpga/base: support device tree")Signed-off-by Bruce Richardson <[email protected]>--- drivers/meson.build | 4 ++-- drivers/net/ipn3ke/meson.build | 4 +++- drivers/raw/ifpga/meson.build | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-)drivers/meson.build index renamed from drivers/meson.build +0
-0
4b17662b7..2850d0f94100644drivers/meson.build +2
-2@@ -9,8 +9,8 @@ endif dpdk_driver_classes = ['common', 'bus', 'mempool', # depends on common and bus. - 'raw', # depends on common and bus. - 'net', # depends on common, bus, mempool and raw. + 'net', # depends on common, bus, mempool + 'raw', # depends on common, bus and net. 'crypto', # depends on common, bus and mempool (net infuture).
drivers/meson.build +0
-0'compress', # depends on common, bus, mempool. 'event', # depends on common, bus, mempool and net.(quoted diff) +0
-0b/drivers/net/ipn3ke/meson.build index
e3c8a6768..bfec592ab100644drivers/net/ipn3ke/meson.build +3
-1@@ -21,9 +21,11 @@ endif if build allow_experimental_apis = true + includes += include_directories('../../raw/ifpga') + sources += files('ipn3ke_ethdev.c', 'ipn3ke_representor.c', 'ipn3ke_tm.c', 'ipn3ke_flow.c') - deps += ['bus_ifpga', 'sched', 'pmd_i40e', 'rawdev', 'rawdev_ifpga'] + deps += ['bus_ifpga', 'ethdev', 'sched'] endifdrivers/raw/ifpga/meson.build +1
-2@@ -15,7 +15,7 @@ if build objs = [base_objs] deps += ['ethdev', 'rawdev', 'pci', 'bus_pci', 'kvargs', - 'bus_vdev', 'bus_ifpga', 'net', 'i40e', 'ipn3ke'] + 'bus_vdev', 'bus_ifpga', 'net', 'pmd_i40e', 'pmd_ipn3ke'] ext_deps += dep sources = files('ifpga_rawdev.c') --
Quoted 1 line
2.23.0
Ye Xiaolong
AppliedQuoted 68 lines · Bruce Richardson
The ipn3ke driver and the ifpga driver had circular dependencies on each other, meaning that neither could be built with meson. Fix this by:
* setting the build order of net and raw to match that in makefiles
* removing the dependency from the net driver on the rawdev one
* fixing the dependency names in the rawdev driver meson.build fileFixes 8418c92811b4 ("net/ipn3ke: remove configuration for i40e port bonding")Fixes e1defba4cf66 ("raw/ifpga/base: support device tree")Signed-off-by Bruce Richardson <[email protected]>---
drivers/meson.build | 4 ++-- drivers/net/ipn3ke/meson.build | 4 +++- drivers/raw/ifpga/meson.build | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-)drivers/meson.build +2
-2@@ -9,8 +9,8 @@ endif dpdk_driver_classes = ['common', 'bus', 'mempool', # depends on common and bus. - 'raw', # depends on common and bus. - 'net', # depends on common, bus, mempool and raw. + 'net', # depends on common, bus, mempool + 'raw', # depends on common, bus and net. 'crypto', # depends on common, bus and mempool (net in future). 'compress', # depends on common, bus, mempool. 'event', # depends on common, bus, mempool and net.drivers/net/ipn3ke/meson.build +0
-0@@ -21,9 +21,11 @@ endifif build
allow_experimental_apis= truedrivers/net/ipn3ke/meson.build +2
-0+ includes += include_directories('../../raw/ifpga') +sources += files('ipn3ke_ethdev.c', 'ipn3ke_representor.c', 'ipn3ke_tm.c', 'ipn3ke_flow.c')drivers/net/ipn3ke/meson.build +1
-1- deps += ['bus_ifpga', 'sched', 'pmd_i40e', 'rawdev', 'rawdev_ifpga'] + deps += ['bus_ifpga', 'ethdev', 'sched']endif
drivers/raw/ifpga/meson.build +1
-1@@ -15,7 +15,7 @@ if build objs = [base_objs] deps += ['ethdev', 'rawdev', 'pci', 'bus_pci', 'kvargs', - 'bus_vdev', 'bus_ifpga', 'net', 'i40e', 'ipn3ke'] + 'bus_vdev', 'bus_ifpga', 'net', 'pmd_i40e', 'pmd_ipn3ke'] ext_deps += dep sources = files('ifpga_rawdev.c')Signature · 1 line
2.23.0
Applied to dpdk-next-net-intel, Thanks.