[v2,06/10] net/octeontx: 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/octeontx/base/meson.build | 19 +------------------
drivers/net/octeontx/meson.build | 3 ---
2 files changed, 1 insertion(+), 21 deletions(-)
@@ -1,25 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
-sources = [
+base_sources = files(
'octeontx_pkovf.c',
'octeontx_pkivf.c',
'octeontx_bgx.c',
-]
-
-depends = ['ethdev', 'mempool_octeontx']
-static_objs = []
-foreach d: depends
- if not is_variable('shared_rte_' + d)
- subdir_done()
- endif
- static_objs += get_variable('static_rte_' + d)
-endforeach
-
-c_args = cflags
-base_lib = static_library('octeontx_base', sources,
- c_args: c_args,
- dependencies: static_objs,
)
-
-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(
'octeontx_ethdev.c',
@@ -18,6 +17,4 @@ sources = files(
deps += ['mempool_octeontx', 'eventdev']
-includes += include_directories('base')
-
cflags += no_wvla_cflag