[v2,05/10] net/ngbe: use common base code build handling
Checks
Commit Message
Use the base code build handling logic in the drivers/meson.build file,
rather than re-implementing it in the driver itself.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/ngbe/base/meson.build | 12 ++----------
drivers/net/ngbe/meson.build | 3 ---
2 files changed, 2 insertions(+), 13 deletions(-)
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
-sources = [
+base_sources = files(
'ngbe_eeprom.c',
'ngbe_hw.c',
'ngbe_mbx.c',
@@ -11,14 +11,6 @@ sources = [
'ngbe_phy_mvl.c',
'ngbe_phy_yt.c',
'ngbe_vf.c',
-]
-
-error_cflags = []
+)
cflags += no_wvla_cflag
-c_args = cflags
-
-base_lib = static_library('ngbe_base', sources,
- dependencies: [static_rte_eal, static_rte_ethdev, static_rte_bus_pci],
- c_args: c_args)
-base_objs = base_lib.extract_all_objects(recursive: true)
@@ -8,7 +8,6 @@ if is_windows
endif
subdir('base')
-objs = [base_objs]
sources = files(
'ngbe_ethdev.c',
@@ -25,5 +24,3 @@ if arch_subdir == 'x86'
elif arch_subdir == 'arm'
sources += files('ngbe_rxtx_vec_neon.c')
endif
-
-includes += include_directories('base')