1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018 Marvell International Ltd. 3# Copyright(c) 2018 Semihalf. 4# All rights reserved. 5 6path = get_option('lib_musdk_dir') 7lib_dir = path + '/lib' 8inc_dir = path + '/include' 9 10lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false) 11if not lib.found() 12 build = false 13else 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 ] 21endif 22 23sources = files( 24 'mvneta_ethdev.c', 25 'mvneta_rxtx.c' 26) 27 28deps += ['cfgfile', 'common_mvep'] 29