summaryrefslogtreecommitdiff
path: root/drivers/net/mvpp2
diff options
context:
space:
mode:
authorTomasz Duszynski <tdu@semihalf.com>2018-04-11 13:45:07 +0200
committerBruce Richardson <bruce.richardson@intel.com>2018-04-19 14:10:44 +0200
commit6f54e56d65226dd04b13c671ba86acf01513f90c (patch)
treef93b118d99c6d984cce6cded579d907d87ab4901 /drivers/net/mvpp2
parent495cf86ff5e121c9fa664349a79b6b963b2ccbcd (diff)
downloaddpdk-next-eventdev-6f54e56d65226dd04b13c671ba86acf01513f90c.zip
dpdk-next-eventdev-6f54e56d65226dd04b13c671ba86acf01513f90c.tar.gz
dpdk-next-eventdev-6f54e56d65226dd04b13c671ba86acf01513f90c.tar.xz
net/mvpp2: add to meson build
Add support for building MRVL MVPP2 PMD with meson. To avoid cluttering the build environment and to keep all relevant settings local to a cross build we get MUSDK library installation path from a meson option. Signed-off-by: Tomasz Duszynski <tdu@semihalf.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'drivers/net/mvpp2')
-rw-r--r--drivers/net/mvpp2/meson.build25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build
new file mode 100644
index 0000000..e139889
--- /dev/null
+++ b/drivers/net/mvpp2/meson.build
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Marvell International Ltd.
+# Copyright(c) 2018 Semihalf.
+# All rights reserved.
+
+path = get_option('lib_musdk_dir')
+lib_dir = path + '/lib'
+inc_dir = path + '/include'
+
+lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
+if not lib.found()
+ build = false
+else
+ ext_deps += lib
+ includes += include_directories(inc_dir)
+ cflags += ['-DMVCONF_TYPES_PUBLIC', '-DMVCONF_DMA_PHYS_ADDR_T_PUBLIC']
+endif
+
+sources = files(
+ 'mrvl_ethdev.c',
+ 'mrvl_flow.c',
+ 'mrvl_qos.c'
+)
+
+deps += ['cfgfile']