]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
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 | |
f67539c2 | 13 | reason = 'missing dependency, "libmusdk"' |
9f95a23c TL |
14 | else |
15 | ext_deps += lib | |
16 | includes += include_directories(inc_dir) | |
17 | cflags += [ | |
18 | '-DMVCONF_TYPES_PUBLIC', | |
19 | '-DMVCONF_DMA_PHYS_ADDR_T_PUBLIC', | |
20 | '-DMVCONF_DMA_PHYS_ADDR_T_SIZE=64' | |
21 | ] | |
22 | endif | |
23 | ||
24 | sources = files( | |
25 | 'mvneta_ethdev.c', | |
26 | 'mvneta_rxtx.c' | |
27 | ) | |
28 | ||
29 | deps += ['cfgfile', 'common_mvep'] |