From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 39CA81BB43 for ; Wed, 11 Apr 2018 13:45:19 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id p142-v6so2172330lfd.6 for ; Wed, 11 Apr 2018 04:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eqKSD2MPpiZaJPhnj1hLALwo2URl84g+FFupT01mZZ8=; b=Z8xcZ0TssfVeDz7FwXaOgpOUnV0TztOhOewOsnMXEsuvN55KdjGKiHoWIIAEILaUOs YlIQw7YXNDeTHvdrhvWhM8nTsDj9+lRJcNLRAVZWUGBtiRGRAXyqfYd15quiHHjQZDJK HupJOKsYhm770oMKCjsHvOt+VGSHEpDgOs5HCl6bWaalzz6S3ceeYLXsMcvrMCItyKjo VzKGp7uzKVJG5T1pYvd1bltppCx/wxy67bc+oRlI+u4SArBkvNEYvNXzzs8UkATbTYHw mGly/QKnbefqZy1QpiwPPUJabJ7CntfEaBpI0x6epQoINq2+0/rLhk+57I7V2dFl+adZ 9OEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eqKSD2MPpiZaJPhnj1hLALwo2URl84g+FFupT01mZZ8=; b=dASu9KZh7EJSdLXYJbXX0UvGNFwomqlFe/1hpymVKQrKx8kj97MuHTK8QCOxlvojcA 70PEjM1/EC3GVKz2eoRBA+QeC0tmjt7QICdj6Rme3unIrmlXnpfznkrGifQZG6V5G6jf BZpRaQd32dVf/GJqutaaUx8foz/hKyJwKdsQlOxLIjV757XCabrrFaJ3TfBortHnPLhL HphFyRPQb7m8Vp1qSlg6hp3BpALRJkILAdKEa8zQQFsv76h6lAajWWX0bjqeYb1nbheW qP3FcFSVcbJ89xVtwe7EsQZC2EHWI579GAdrNdGJGlmDZNprJPgeAFzSPkk5FkljFy1O SpIA== X-Gm-Message-State: ALQs6tBBEGX0x5woHWmFKY2EtmS2xEvdp6ZkXX1VpXgFd3mS9dJW+r3e 1LnDniMA0Pw2QqyylfZRxlGhuXEM674= X-Google-Smtp-Source: AIpwx49NRZs5ghslz/8d4UmZtUS5y3oiB3fn4GhlbRGQY0/Iw7MFyzWjk5r1kjFIxE6hKLirm59obw== X-Received: by 2002:a19:db54:: with SMTP id s81-v6mr2562097lfg.143.1523447118651; Wed, 11 Apr 2018 04:45:18 -0700 (PDT) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id i16sm179751ljg.7.2018.04.11.04.45.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 04:45:17 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: jck@semihalf.com, dima@marvell.com, nsamsono@marvell.com, jianbo.liu@arm.com, bruce.richardson@intel.com, Tomasz Duszynski Date: Wed, 11 Apr 2018 13:45:07 +0200 Message-Id: <1523447107-13324-3-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523447107-13324-1-git-send-email-tdu@semihalf.com> References: <1523447107-13324-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 2/2] net/mvpp2: add meson build file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 11:45:19 -0000 Add support for building MRVL MVPP2 PMD with meson. Signed-off-by: Tomasz Duszynski --- drivers/net/meson.build | 2 +- drivers/net/mvpp2/meson.build | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 drivers/net/mvpp2/meson.build diff --git a/drivers/net/meson.build b/drivers/net/meson.build index b7cac4a..b7d00a0 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -3,7 +3,7 @@ drivers = ['af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2', 'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe', - 'null', 'octeontx', 'pcap', 'ring', + 'mvpp2', 'null', 'octeontx', 'pcap', 'ring', 'sfc', 'thunderx', 'virtio'] std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc std_deps += ['bus_pci'] # very many PMDs depend on PCI, so make std diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build new file mode 100644 index 0000000..6ea13ee --- /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 = run_command('printenv', 'LIBMUSDK_PATH').stdout().strip() +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'] -- 2.7.4