net/avp: remove resources when port is closed
[dpdk.git] / drivers / net / mvneta / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Marvell International Ltd.
3 # Copyright(c) 2018 Semihalf.
4 # All rights reserved.
5
6 path = get_option('lib_musdk_dir')
7 lib_dir = path + '/lib'
8 inc_dir = path + '/include'
9
10 lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
11 if not lib.found()
12         build = false
13 else
14         ext_deps += lib
15         includes += include_directories(inc_dir)
16         cflags += [
17           '-DMVCONF_TYPES_PUBLIC',
18           '-DMVCONF_DMA_PHYS_ADDR_T_PUBLIC',
19           '-DMVCONF_DMA_PHYS_ADDR_T_SIZE=64'
20         ]
21 endif
22
23 sources = files(
24         'mvneta_ethdev.c',
25         'mvneta_rxtx.c'
26 )
27
28 deps += ['cfgfile', 'common_mvep']