[v2,08/10] net/thunderx: 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/thunderx/base/meson.build | 10 +---------
drivers/net/thunderx/meson.build | 3 ---
2 files changed, 1 insertion(+), 12 deletions(-)
@@ -1,16 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
-sources = [
+base_sources = files(
'nicvf_hw.c',
'nicvf_mbox.c',
'nicvf_bsvf.c',
-]
-
-c_args = cflags
-base_lib = static_library('nicvf_base', sources,
- c_args: c_args,
- dependencies: static_rte_ethdev
)
-
-base_objs = base_lib.extract_all_objects(recursive: true)
@@ -8,7 +8,6 @@ if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
endif
subdir('base')
-objs = [base_objs]
sources = files(
'nicvf_ethdev.c',
@@ -23,5 +22,3 @@ endif
if cc.has_argument('-Wno-maybe-uninitialized')
cflags += '-Wno-maybe-uninitialized'
endif
-
-includes += include_directories('base')