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.richard...@intel.com>
---
 drivers/net/thunderx/base/meson.build | 10 +---------
 drivers/net/thunderx/meson.build      |  3 ---
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/net/thunderx/base/meson.build 
b/drivers/net/thunderx/base/meson.build
index cec45d0ae1..abf0b64e79 100644
--- a/drivers/net/thunderx/base/meson.build
+++ b/drivers/net/thunderx/base/meson.build
@@ -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)
diff --git a/drivers/net/thunderx/meson.build b/drivers/net/thunderx/meson.build
index da665bd76f..03262af8ca 100644
--- a/drivers/net/thunderx/meson.build
+++ b/drivers/net/thunderx/meson.build
@@ -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')
-- 
2.45.2

Reply via email to