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 2424FA0350; Tue, 30 Jun 2020 15:15:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 367071BEB3; Tue, 30 Jun 2020 15:15:37 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 3CEF41BDFD for ; Tue, 30 Jun 2020 15:15:35 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 85E2D5C00B8; Tue, 30 Jun 2020 09:15:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 30 Jun 2020 09:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=lzmDsf3ZCs2eR gWhgP4FIL+mfGbry4qHLyZo2GlFIrw=; b=pDHGS+F+OKhEOVfYtHe4wsgAjMHVL 5ZYDSXdnx8qDiZXqsFucSGwobGjvjS1AF9lWbZVgvWjpPry9qsCTDKvae6bwBtQ3 kujZQ4nU88vIwD3JFxdoSW/xwPi3wqvEaq6RjjDJUvIhfP3ZV8V0/h/tmscS+qTb yhJ8dpvdNMSIyEMptu4WdF/fIpjwk7bnfRsQYh2MUxFHEPDrZPhyA0YSQtVt0NRT lXrLUasJJp/62dBiNiR56n6hLfyejZTPpd76Nl4q7bRm/pwcmkJUBCzSgO7OEKsA 5EQ+K98FqzUGODF238fzIy1XDkIawPNWZGPy9Om/BcHYjOz9BxxFKUvCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=lzmDsf3ZCs2eRgWhgP4FIL+mfGbry4qHLyZo2GlFIrw=; b=lENUE5We huDUHFposQEHdsPu/QV6KNQNiDrnn27hp5Z60PPlzjsRN85coRl4r0vVeAVt2+lV 8TpTZJAfCtMfP4mukPwXcpNdhyEJhKmKE7qQUzKiiEdC/3FPs9nW8+OuDAeAPpq8 84lRGmUfyFqOJx9BS8Mi+j+gR+EUn6PC1HGu/SN14c1CZhXRedGAgrijDZN77KGD VwSivwh8vDzZ1MYXFaKcjdw3B5yEir6hwY/LGEVdJ0LLWIbf/BOPgkpPVW0m+iEg G4lXnsUUZXQfGAa+3TUicF5ONkZlGqCo6mMcbSs0Gi4HrVl4l7y26PrSCoSsEr7b uYYxLI2/VbZMbQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtddtgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedtgfeu tdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth 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 1C1FD306005C; Tue, 30 Jun 2020 09:15:30 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Neil Horman , Ankur Dwivedi , Anoob Joseph , Gagandeep Singh , Akhil Goyal , Xiaoyun Li , Jingjing Wu Date: Tue, 30 Jun 2020 15:15:22 +0200 Message-Id: <20200630131523.1285693-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200629203656.39052-1-thomas@monjalon.net> References: <20200629203656.39052-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] build: replace meson OS detection with variable 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" Some places were calling the meson function host_machine.system() instead of the variables is_windows and is_linux defined in config/meson.build. At the same time, the missing "Linux restriction" reason is added to pfe and octeontx2 crypto PMDs. Signed-off-by: Thomas Monjalon Acked-by: Bruce Richardson --- v2: add missing reason to drivers --- buildtools/pmdinfogen/meson.build | 2 +- drivers/crypto/octeontx2/meson.build | 5 +++-- drivers/net/pfe/meson.build | 3 ++- examples/ntb/meson.build | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/buildtools/pmdinfogen/meson.build b/buildtools/pmdinfogen/meson.build index 7da415b3b7..670528fac7 100644 --- a/buildtools/pmdinfogen/meson.build +++ b/buildtools/pmdinfogen/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -if host_machine.system() == 'windows' +if is_windows subdir_done() endif diff --git a/drivers/crypto/octeontx2/meson.build b/drivers/crypto/octeontx2/meson.build index a28c700b9f..0948e73607 100644 --- a/drivers/crypto/octeontx2/meson.build +++ b/drivers/crypto/octeontx2/meson.build @@ -1,8 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (C) 2019 Marvell International Ltd. -if host_machine.system() != 'linux' - build = false +if not is_linux + build = false + reason = 'only supported on Linux' endif deps += ['bus_pci'] diff --git a/drivers/net/pfe/meson.build b/drivers/net/pfe/meson.build index 3e1a228a3f..da0787c28c 100644 --- a/drivers/net/pfe/meson.build +++ b/drivers/net/pfe/meson.build @@ -1,8 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright 2019 NXP -if host_machine.system() != 'linux' +if not is_linux build = false + reason = 'only supported on Linux' endif deps += ['common_dpaax'] diff --git a/examples/ntb/meson.build b/examples/ntb/meson.build index ab449d0939..45a59350c5 100644 --- a/examples/ntb/meson.build +++ b/examples/ntb/meson.build @@ -7,7 +7,7 @@ # DPDK instance, use 'make' allow_experimental_apis = true -if host_machine.system() != 'linux' +if not is_linux build = false endif deps += 'rawdev' -- 2.26.2