From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B1056A00E6 for ; Mon, 8 Jul 2019 09:19:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8806D325F; Mon, 8 Jul 2019 09:19:30 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 99DA63256 for ; Mon, 8 Jul 2019 09:19:28 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D741321B6B; Mon, 8 Jul 2019 03:19:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 08 Jul 2019 03:19:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=6anNLAoNlrLC99L+kaOV9PN 3LZa62NTeFzqtmoYFSn4=; b=jlrluHIf+f9h+DShrfqJRwDvOaY+98OgjvyBKdl sb1wfX4G4PDKdd6GSs521vnX3HFpUAWL/47wNfT5HHc19tGiUp32wV6Ekd8K6SxQ tj8iA80HL0/BZHLJJZ3cpk0jcBRb9AG2DdX/n6oSbHz4mb1efG7Q5Yoynwe6tT0W aUAA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6anNLAoNlrLC99L+k aOV9PN3LZa62NTeFzqtmoYFSn4=; b=jj4SN7ZFtTAWd5VIMMpAAWeKU4/fg9v75 ubXTiWEuibNlMPKd5omxXcg37MF6u/TvmH40o2qTEofKvO9g4hD1rxza6DQv22kN wvW4qBJrruiP5oXucSiQt0jelWE7RrXUgJNPUKEeOc+m8/iwJP2JaSURQO4fA1no zGLDnD4lSyUY4yKNbkEQMgiIer/Jyyy7mMw+OYQupBhjFq92ZAz7m+2blxKXvD93 w/D4xdX4g5O+0lnfKlzOS27NBiK3HLFmfTFlR8AvxwcsTpRBvz4xM6YMeFDRaEi3 gm+Dgyq4VMtEY6cs4LKaSey6sBrndomwlJBZajoQG45QQZF2NuK3w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeelgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukfhppe ejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhm rghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AE0188005A; Mon, 8 Jul 2019 03:19:26 -0400 (EDT) From: Thomas Monjalon To: Matan Azrad , Shahaf Shuler , Yongseok Koh , Viacheslav Ovsiienko Cc: dev@dpdk.org Date: Mon, 8 Jul 2019 09:18:04 +0200 Message-Id: <20190708071804.15167-1-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/mlx: allow build only on Linux 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Currently mlx4/mlx5 support only Linux. Signed-off-by: Thomas Monjalon --- drivers/net/mlx4/meson.build | 11 +++++++++-- drivers/net/mlx5/meson.build | 10 +++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build index 5de04b70b..028cd97fa 100644 --- a/drivers/net/mlx4/meson.build +++ b/drivers/net/mlx4/meson.build @@ -2,6 +2,13 @@ # Copyright 2018 6WIND S.A. # Copyright 2018 Mellanox Technologies, Ltd +if not is_linux + build = false + reason = 'only supported on Linux' + subdir_done() +endif +build = true + pmd_dlopen = (get_option('ibverbs_link') == 'dlopen') LIB_GLUE_BASE = 'librte_pmd_mlx4_glue.so' LIB_GLUE_VERSION = '18.02.0' @@ -13,9 +20,9 @@ if pmd_dlopen '-DMLX4_GLUE_VERSION="@0@"'.format(LIB_GLUE_VERSION), ] endif + libnames = [ 'mnl', 'mlx4', 'ibverbs' ] libs = [] -build = true foreach libname:libnames lib = dependency('lib' + libname, required:false) if not lib.found() @@ -28,7 +35,7 @@ foreach libname:libnames reason = 'missing dependency, "' + libname + '"' endif endforeach -# Compile PMD + if build allow_experimental_apis = true ext_deps += libs diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 326d1a369..3eff22e4d 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -2,6 +2,13 @@ # Copyright 2018 6WIND S.A. # Copyright 2018 Mellanox Technologies, Ltd +if not is_linux + build = false + reason = 'only supported on Linux' + subdir_done() +endif +build = true + pmd_dlopen = (get_option('ibverbs_link') == 'dlopen') LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so' LIB_GLUE_VERSION = '19.05.0' @@ -13,9 +20,9 @@ if pmd_dlopen '-DMLX5_GLUE_VERSION="@0@"'.format(LIB_GLUE_VERSION), ] endif + libnames = [ 'mlx5', 'ibverbs' ] libs = [] -build = true foreach libname:libnames lib = dependency('lib' + libname, required:false) if not lib.found() @@ -28,6 +35,7 @@ foreach libname:libnames reason = 'missing dependency, "' + libname + '"' endif endforeach + if build allow_experimental_apis = true ext_deps += libs -- 2.21.0