event/octeontx: build with meson

Add Cavium octeontx to meson build and change order of drivers built
from event->mempool->net to mempool->net->event to resolve dependency.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Pavan Nikhilesh 2018-01-19 23:45:20 +05:30 committed by Bruce Richardson
parent 7f615033d6
commit bd77f2d64c
5 changed files with 17 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
drivers = ['skeleton', 'sw']
drivers = ['skeleton', 'sw', 'octeontx']
std_deps = ['eventdev', 'kvargs']
config_flag_fmt = 'RTE_LIBRTE_@0@_EVENTDEV_PMD'
driver_name_fmt = 'rte_pmd_@0@_event'

View File

@ -17,7 +17,7 @@ LDLIBS += -lrte_eal -lrte_eventdev -lrte_mempool_octeontx -lrte_pmd_octeontx
LDLIBS += -lrte_bus_pci -lrte_mempool -lrte_mbuf -lrte_kvargs
LDLIBS += -lrte_bus_vdev
EXPORT_MAP := rte_pmd_octeontx_ssovf_version.map
EXPORT_MAP := rte_pmd_octeontx_event_version.map
LIBABIVER := 1

View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
sources = files('ssovf_worker.c',
'ssovf_evdev.c',
'ssovf_evdev_selftest.c'
)
deps += ['mempool_octeontx', 'bus_vdev', 'pmd_octeontx']

View File

@ -1,7 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
driver_classes = ['bus', 'crypto', 'event', 'mempool', 'net']
# Defines the order in which the drivers are buit.
driver_classes = ['bus',
'mempool', # depends on bus.
'net', # depends on bus and mempool.
'crypto', # depenss on bus, mempool (net in future).
'event'] # depends on bus, mempool and net.
foreach class:driver_classes
drivers = []