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 7B839A00E6 for ; Mon, 8 Jul 2019 12:08:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A92B2397D; Mon, 8 Jul 2019 12:08:44 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40072.outbound.protection.outlook.com [40.107.4.72]) by dpdk.org (Postfix) with ESMTP id 02C7237B0 for ; Mon, 8 Jul 2019 12:08:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MhXmKFzIZkOF9daRAZO6c2sXoCjjFEG8lbl1xZ2j/FY=; b=njGlCyHYAf7dxstD6sZozJAD/TNbXobxxlPgv3U6rME/aFdu9fXTlF6FHQPBznyqUpmQ2b9Uy+G5xxRg9GOfi2Ak8WGpArNoyfMN5HR731lF0eFJ6NJqiRPhDSK6Iulxd77TwaJ5eLCkocNea8scCneLy6DV1Gr5wllzWTmaMbw= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3924.eurprd05.prod.outlook.com (52.133.48.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.17; Mon, 8 Jul 2019 10:08:41 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a81f:9e35:487d:d788]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a81f:9e35:487d:d788%7]) with mapi id 15.20.2052.020; Mon, 8 Jul 2019 10:08:41 +0000 From: Matan Azrad To: Thomas Monjalon , Shahaf Shuler , Yongseok Koh , Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx: allow build only on Linux Thread-Index: AQHVNV18zO65VOWCd0yfecuFCCs2XKbAf1yQ Date: Mon, 8 Jul 2019 10:08:41 +0000 Message-ID: References: <20190708071804.15167-1-thomas@monjalon.net> In-Reply-To: <20190708071804.15167-1-thomas@monjalon.net> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 88c74874-1865-4a7c-8efe-08d7038c40dd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3924; x-ms-traffictypediagnostic: AM0PR0502MB3924: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:785; x-forefront-prvs: 00922518D8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39860400002)(396003)(346002)(376002)(189003)(199004)(8676002)(53936002)(6116002)(3846002)(6636002)(186003)(26005)(256004)(55016002)(9686003)(478600001)(305945005)(6436002)(66946007)(73956011)(76116006)(66446008)(64756008)(66556008)(66476007)(11346002)(229853002)(86362001)(14454004)(446003)(25786009)(476003)(102836004)(486006)(4326008)(6246003)(110136005)(74316002)(5660300002)(6506007)(7736002)(316002)(81156014)(81166006)(99286004)(52536014)(7696005)(76176011)(68736007)(71200400001)(71190400001)(8936002)(33656002)(66066001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3924; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: heHA+r2eHuTNqMnvSEBbDrcHnKALPjTPuFQB7l08+4qywR8w/UV3/fQGTLrNeWAS7T+vbLyew2PB0MfDvHugho2DN1NnCsKH/6mVJwm+N2nG9XIhRtEi/ioJm4MpAhFwBKhEAhBmn7ySWmhANILhVzrGmKDfTodBLugl5kerskj94m2OZyE7Hji99G9iySVAag5wJ63CHgsXwBPtZSF7ZCqWHRCd7yy3bOaUtBKCFrs0uaY4C6DlIwPD50AHgUXphAj2qIs4yTrybP09c42JtLP7LRvTnWaeC/EMJe9pVGsuWOzXsuk94vT+by8XSJTi8z5MGtUovVt6txTNdTJbnTgQkNY3c4Xvu2kSHzyRL5ri+jSY/1BG7KioDdjNmf/owt9u/SDZOO1cXk4dlkl+/3Cu2eeVwSYC+kiHG0HkhNk= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88c74874-1865-4a7c-8efe-08d7038c40dd X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2019 10:08:41.4171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: matan@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3924 Subject: Re: [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" From: Thomas Monjalon > Currently mlx4/mlx5 support only Linux. >=20 > Signed-off-by: Thomas Monjalon Acked-by: Matan Azrad > drivers/net/mlx4/meson.build | 11 +++++++++-- > drivers/net/mlx5/meson.build | 10 +++++++++- > 2 files changed, 18 insertions(+), 3 deletions(-) >=20 > 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 >=20 > +if not is_linux > + build =3D false > + reason =3D 'only supported on Linux' > + subdir_done() > +endif > +build =3D true > + > pmd_dlopen =3D (get_option('ibverbs_link') =3D=3D 'dlopen') LIB_GLUE_BA= SE =3D > 'librte_pmd_mlx4_glue.so' > LIB_GLUE_VERSION =3D '18.02.0' > @@ -13,9 +20,9 @@ if pmd_dlopen > '- > DMLX4_GLUE_VERSION=3D"@0@"'.format(LIB_GLUE_VERSION), > ] > endif > + > libnames =3D [ 'mnl', 'mlx4', 'ibverbs' ] libs =3D [] -build =3D true = foreach > libname:libnames > lib =3D dependency('lib' + libname, required:false) > if not lib.found() > @@ -28,7 +35,7 @@ foreach libname:libnames > reason =3D 'missing dependency, "' + libname + '"' > endif > endforeach > -# Compile PMD > + > if build > allow_experimental_apis =3D true > ext_deps +=3D 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 >=20 > +if not is_linux > + build =3D false > + reason =3D 'only supported on Linux' > + subdir_done() > +endif > +build =3D true > + > pmd_dlopen =3D (get_option('ibverbs_link') =3D=3D 'dlopen') LIB_GLUE_BA= SE =3D > 'librte_pmd_mlx5_glue.so' > LIB_GLUE_VERSION =3D '19.05.0' > @@ -13,9 +20,9 @@ if pmd_dlopen > '- > DMLX5_GLUE_VERSION=3D"@0@"'.format(LIB_GLUE_VERSION), > ] > endif > + > libnames =3D [ 'mlx5', 'ibverbs' ] > libs =3D [] > -build =3D true > foreach libname:libnames > lib =3D dependency('lib' + libname, required:false) > if not lib.found() > @@ -28,6 +35,7 @@ foreach libname:libnames > reason =3D 'missing dependency, "' + libname + '"' > endif > endforeach > + > if build > allow_experimental_apis =3D true > ext_deps +=3D libs > -- > 2.21.0