From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 3D5191AFFB for ; Thu, 13 Sep 2018 15:41:55 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id v90-v6so5691485wrc.0 for ; Thu, 13 Sep 2018 06:41:55 -0700 (PDT) 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=A2+WWZblwm64HCmeuM6+fHAXmdHy/hAdqDRlje8I3hw=; b=sM0TbMUomaSArKjXSwkbtW7NU7Y50Zy6CxwYI7TSXh1mlGtR+3htVLyfGhcCGYIIAw JiA8xFY5W2+okGowrsS182U/DIXlOGHZx+xWOs0RhkGBqjUk55R25z+kzGxncHFzecZL YiZ6CCDRVr3diPagK/Ox0rFUwG5Ib4pYlDkAj4rAyyhSxShcoExmiQ0BM+vgd9AGXVNp gVdE0UdY8TlvrgBlH9s/WHiuDYde0MrpTy2LfMpBmBeBK+khQslKZkivKG2bqzh+kmVK dC9H1WMwgVYyamxplDQECa+eoKlHsycGWqiL0ykxm+sZR+TYXzAG3HCY0GmpcAqrO6bs F4fQ== X-Gm-Message-State: APzg51BQrJqPnkwMsxaKIKzAEtSrHtPqfmvBjzl+Fc0kgRjteP175ffT H8ZWDxCsAneRVX25u808WfEFED7dD8w= X-Google-Smtp-Source: ANB0Vdb+CW/dzVoDLSLbRaiFj1jyIUequOLPbkVtb7/ey+MgHtCqBgk/+nzhoSiGsHNBn0g+gPYGzw== X-Received: by 2002:a5d:470d:: with SMTP id y13-v6mr5835017wrq.229.1536846114645; Thu, 13 Sep 2018 06:41:54 -0700 (PDT) Received: from localhost ([2001:1be0:110d:fcff:f19f:e27c:a323:8ad8]) by smtp.gmail.com with ESMTPSA id c19-v6sm5354004wre.86.2018.09.13.06.41.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 06:41:53 -0700 (PDT) From: Luca Boccassi To: dev@dpdk.org Cc: keith.wiles@intel.com, roy.fan.zhang@intel.com, jingjing.wu@intel.com, wenzhuo.lu@intel.com, rasesh.mody@cavium.com, harish.patil@cavium.com, shahed.shaikh@cavium.com, amr.mokhtar@intel.com, shijith.thotton@cavium.com, ssrinivasan@cavium.com, liang.j.ma@intel.com, peter.mccarthy@intel.com, jerin.jacob@caviumnetworks.com, maciej.czekaj@caviumnetworks.com, arybchenko@solarflare.com, santosh.shukla@caviumnetworks.com, ashish.gupta@cavium.com, yongwang@vmware.com, bruce.richardson@intel.com, thomas@monjalon.net Date: Thu, 13 Sep 2018 14:41:36 +0100 Message-Id: <20180913134140.8534-5-bluca@debian.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180913134140.8534-1-bluca@debian.org> References: <20180910200415.8340-1-bluca@debian.org> <20180913134140.8534-1-bluca@debian.org> Subject: [dpdk-dev] [PATCH v3 5/9] build: add Meson files for qede PMD 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: Thu, 13 Sep 2018 13:41:55 -0000 Signed-off-by: Luca Boccassi Acked-by: Shahed Shaikh --- config/rte_config.h | 3 ++ drivers/net/meson.build | 2 +- drivers/net/qede/base/meson.build | 57 +++++++++++++++++++++++++++++++ drivers/net/qede/meson.build | 12 +++++++ 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 drivers/net/qede/base/meson.build create mode 100644 drivers/net/qede/meson.build diff --git a/config/rte_config.h b/config/rte_config.h index 46775a8419..ee84f04977 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -116,4 +116,7 @@ #define RTE_PMD_RING_MAX_RX_RINGS 16 #define RTE_PMD_RING_MAX_TX_RINGS 16 +/* QEDE PMD defines */ +#define RTE_LIBRTE_QEDE_FW "" + #endif /* _RTE_CONFIG_H_ */ diff --git a/drivers/net/meson.build b/drivers/net/meson.build index 28efeda0b6..74f4109161 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -24,7 +24,7 @@ drivers = ['af_packet', 'mvpp2', 'netvsc', 'nfp', - 'null', 'octeontx', 'pcap', 'ring', + 'null', 'octeontx', 'pcap', 'qede', 'ring', 'sfc', 'softnic', 'szedata2', diff --git a/drivers/net/qede/base/meson.build b/drivers/net/qede/base/meson.build new file mode 100644 index 0000000000..59b41c895d --- /dev/null +++ b/drivers/net/qede/base/meson.build @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Luca Boccassi + +sources = [ + 'bcm_osal.c', + 'ecore_cxt.c', + 'ecore_dcbx.c', + 'ecore_dev.c', + 'ecore_hw.c', + 'ecore_init_fw_funcs.c', + 'ecore_init_ops.c', + 'ecore_int.c', + 'ecore_l2.c', + 'ecore_mcp.c', + 'ecore_sp_commands.c', + 'ecore_spq.c', + 'ecore_sriov.c', + 'ecore_vf.c', +] + + +error_cflags = [ + '-Wno-unused-parameter', + '-Wno-sign-compare', + '-Wno-missing-prototypes', + '-Wno-cast-qual', + '-Wno-unused-function', + '-Wno-unused-variable', + '-Wno-strict-aliasing', + '-Wno-missing-prototypes', + '-Wno-unused-value', + '-Wno-format-nonliteral', + '-Wno-shift-negative-value', + '-Wno-unused-but-set-variable', + '-Wno-missing-declarations', + '-Wno-maybe-uninitialized', + '-Wno-strict-prototypes', + '-Wno-shift-negative-value', + '-Wno-implicit-fallthrough', + '-Wno-format-extra-args', + '-Wno-visibility', + '-Wno-empty-body', + '-Wno-invalid-source-encoding', + '-Wno-sometimes-uninitialized', + '-Wno-pointer-bool-conversion', +] +c_args = cflags +foreach flag: error_cflags + if cc.has_argument(flag) + c_args += flag + endif +endforeach + +base_lib = static_library('qede_base', sources, + dependencies: static_rte_net, + c_args: c_args) +base_objs = base_lib.extract_all_objects() diff --git a/drivers/net/qede/meson.build b/drivers/net/qede/meson.build new file mode 100644 index 0000000000..6280073a56 --- /dev/null +++ b/drivers/net/qede/meson.build @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Luca Boccassi + +subdir('base') +objs = [base_objs] + +sources = files( + 'qede_ethdev.c', + 'qede_fdir.c', + 'qede_main.c', + 'qede_rxtx.c', +) -- 2.18.0