get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/52465/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 52465,
    "url": "http://patches.dpdk.org/api/patches/52465/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190409105539.61460-3-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20190409105539.61460-3-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190409105539.61460-3-bruce.richardson@intel.com",
    "date": "2019-04-09T10:55:36",
    "name": "[v2,2/5] build: increase readability via shortcut variables",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8ad905b8870a4da9265499d32b9f7769cf5756ba",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190409105539.61460-3-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 4201,
            "url": "http://patches.dpdk.org/api/series/4201/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4201",
            "date": "2019-04-09T10:55:34",
            "name": "small cleanup and fixes",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4201/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52465/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/52465/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C308F5592;\n\tTue,  9 Apr 2019 12:56:01 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 9AB652BD8\n\tfor <dev@dpdk.org>; Tue,  9 Apr 2019 12:55:57 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Apr 2019 03:55:57 -0700",
            "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.222.236])\n\tby fmsmga004.fm.intel.com with ESMTP; 09 Apr 2019 03:55:56 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,329,1549958400\"; d=\"scan'208\";a=\"160043788\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "bluca@debian.org, david.marchand@redhat.com,\n\tBruce Richardson <bruce.richardson@intel.com>",
        "Date": "Tue,  9 Apr 2019 11:55:36 +0100",
        "Message-Id": "<20190409105539.61460-3-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190409105539.61460-1-bruce.richardson@intel.com>",
        "References": "<20190409105539.61460-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 2/5] build: increase readability via shortcut\n\tvariables",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Define variables for \"is_linux\", \"is_freebsd\" and \"is_windows\"\nto make the code shorter for comparisons and more readable.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nReviewed-by: David Marchand <david.marchand@redhat.com>\nAcked-by: Luca Boccassi <bluca@debian.org>\n---\n app/meson.build                          |  2 +-\n buildtools/meson.build                   |  2 +-\n config/meson.build                       | 14 ++++++++++----\n config/x86/meson.build                   |  2 +-\n doc/guides/contributing/coding_style.rst |  2 +-\n drivers/bus/dpaa/meson.build             |  2 +-\n drivers/bus/fslmc/meson.build            |  2 +-\n drivers/bus/pci/meson.build              |  2 +-\n drivers/bus/vmbus/meson.build            |  2 +-\n drivers/common/dpaax/meson.build         |  2 +-\n drivers/crypto/caam_jr/meson.build       |  2 +-\n drivers/crypto/ccp/meson.build           |  2 +-\n drivers/crypto/dpaa2_sec/meson.build     |  2 +-\n drivers/crypto/dpaa_sec/meson.build      |  2 +-\n drivers/crypto/octeontx/meson.build      |  2 +-\n drivers/event/dpaa/meson.build           |  2 +-\n drivers/event/dpaa2/meson.build          |  2 +-\n drivers/mempool/dpaa/meson.build         |  2 +-\n drivers/mempool/dpaa2/meson.build        |  2 +-\n drivers/meson.build                      |  2 +-\n drivers/net/af_packet/meson.build        |  2 +-\n drivers/net/avp/meson.build              |  2 +-\n drivers/net/axgbe/meson.build            |  2 +-\n drivers/net/dpaa/meson.build             |  2 +-\n drivers/net/dpaa2/meson.build            |  2 +-\n drivers/net/enetc/meson.build            |  2 +-\n drivers/net/failsafe/meson.build         |  2 +-\n drivers/net/nfp/meson.build              |  2 +-\n drivers/net/softnic/meson.build          |  2 +-\n drivers/net/tap/meson.build              |  2 +-\n drivers/net/vdev_netvsc/meson.build      |  2 +-\n drivers/net/virtio/meson.build           |  2 +-\n examples/l3fwd-power/meson.build         |  2 +-\n examples/meson.build                     |  2 +-\n examples/tep_termination/meson.build     |  2 +-\n examples/vdpa/meson.build                |  4 ++--\n examples/vhost/meson.build               |  2 +-\n examples/vhost_scsi/meson.build          |  2 +-\n kernel/meson.build                       |  2 +-\n lib/librte_eventdev/meson.build          |  2 +-\n lib/librte_kni/meson.build               |  2 +-\n lib/librte_power/meson.build             |  2 +-\n lib/librte_vhost/meson.build             |  2 +-\n lib/meson.build                          |  4 ++--\n 44 files changed, 55 insertions(+), 49 deletions(-)",
    "diff": "diff --git a/app/meson.build b/app/meson.build\nindex e949624b7..2b9fdef74 100644\n--- a/app/meson.build\n+++ b/app/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017-2019 Intel Corporation\n \n-if host_machine.system() == 'windows'\n+if is_windows\n \tsubdir_done()\n endif\n \ndiff --git a/buildtools/meson.build b/buildtools/meson.build\nindex 0209bec8f..0d3a42c01 100644\n--- a/buildtools/meson.build\n+++ b/buildtools/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017-2019 Intel Corporation\n \n-if host_machine.system() == 'windows'\n+if is_windows\n \tsubdir_done()\n endif\n \ndiff --git a/config/meson.build b/config/meson.build\nindex ce6af2595..f8aded6ed 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -8,6 +8,12 @@ if not supported_exec_envs.contains(exec_env)\n \terror('unsupported system type \"@0@\"'.format(exec_env))\n endif\n \n+# define a handy variable for checking which OS we have.\n+# gives us \"is_windows\", \"is_freebsd\" and \"is_linux\"\n+foreach env:supported_exec_envs\n+\tset_variable('is_' + env, exec_env == env)\n+endforeach\n+\n # set the major version, which might be used by drivers and libraries\n # depending on the configuration options\n pver = meson.project_version().split('.')\n@@ -95,9 +101,9 @@ if cc.find_library('libm', required : false).found()\n endif\n \n # for linux link against dl, for bsd execinfo\n-if host_machine.system() == 'linux'\n+if is_linux\n \tlink_lib = 'dl'\n-elif host_machine.system() == 'freebsd'\n+elif is_freebsd\n \tlink_lib = 'execinfo'\n else\n \tlink_lib = ''\n@@ -120,7 +126,7 @@ if numa_dep.found() and cc.has_header('numaif.h')\n endif\n \n # check for strlcpy\n-if host_machine.system() == 'linux'\n+if is_linux\n \tlibbsd = dependency('libbsd', required: false)\n \tif libbsd.found()\n \t\tdpdk_conf.set('RTE_USE_LIBBSD', 1)\n@@ -175,4 +181,4 @@ dpdk_conf.set_quoted('RTE_EAL_PMD_PATH', eal_pmd_path)\n install_headers('rte_config.h', subdir: get_option('include_subdir_arch'))\n \n # enable VFIO only if it is linux OS\n-dpdk_conf.set('RTE_EAL_VFIO', host_machine.system() == 'linux')\n+dpdk_conf.set('RTE_EAL_VFIO', is_linux)\ndiff --git a/config/x86/meson.build b/config/x86/meson.build\nindex 558edfda9..2b2d06281 100644\n--- a/config/x86/meson.build\n+++ b/config/x86/meson.build\n@@ -5,7 +5,7 @@\n march_opt = ['-march=@0@'.format(machine)]\n \n # get binutils version for the workaround of Bug 97\n-if host_machine.system() != 'windows'\n+if not is_windows\n \tldver = run_command('ld', '-v').stdout().strip()\n \tif ldver.contains('2.30')\n \t\tif cc.has_argument('-mno-avx512f')\ndiff --git a/doc/guides/contributing/coding_style.rst b/doc/guides/contributing/coding_style.rst\nindex 656563dde..a5d5897f3 100644\n--- a/doc/guides/contributing/coding_style.rst\n+++ b/doc/guides/contributing/coding_style.rst\n@@ -856,7 +856,7 @@ build\n \n .. code-block:: python\n \n-\tif host_machine.system() != 'linux'\n+\tif not is_linux\n \t        build = false\n \tendif\n \ndiff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build\nindex 1fcb4e913..1c8ca8c9a 100644\n--- a/drivers/bus/dpaa/meson.build\n+++ b/drivers/bus/dpaa/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/bus/fslmc/meson.build b/drivers/bus/fslmc/meson.build\nindex 4b0521577..04624c363 100644\n--- a/drivers/bus/fslmc/meson.build\n+++ b/drivers/bus/fslmc/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/bus/pci/meson.build b/drivers/bus/pci/meson.build\nindex a3140ff97..a312ecc03 100644\n--- a/drivers/bus/pci/meson.build\n+++ b/drivers/bus/pci/meson.build\n@@ -8,7 +8,7 @@ install_headers('rte_bus_pci.h')\n sources = files('pci_common.c',\n \t'pci_common_uio.c',\n \t'pci_params.c')\n-if host_machine.system() == 'linux'\n+if is_linux\n \tsources += files('linux/pci.c',\n \t\t\t'linux/pci_uio.c',\n \t\t\t'linux/pci_vfio.c')\ndiff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build\nindex 0e4d058ee..9fd430dae 100644\n--- a/drivers/bus/vmbus/meson.build\n+++ b/drivers/bus/vmbus/meson.build\n@@ -11,7 +11,7 @@ sources = files('vmbus_common.c',\n \t\t'vmbus_bufring.c',\n \t\t'vmbus_common_uio.c')\n \n-if host_machine.system() == 'linux'\n+if is_linux\n \tsources += files('linux/vmbus_bus.c',\n \t\t\t'linux/vmbus_uio.c')\n \tincludes += include_directories('linux')\ndiff --git a/drivers/common/dpaax/meson.build b/drivers/common/dpaax/meson.build\nindex 98a1bdd48..78378e2a6 100644\n--- a/drivers/common/dpaax/meson.build\n+++ b/drivers/common/dpaax/meson.build\n@@ -3,7 +3,7 @@\n \n allow_experimental_apis = true\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/crypto/caam_jr/meson.build b/drivers/crypto/caam_jr/meson.build\nindex 99b71aef1..e61a13c25 100644\n--- a/drivers/crypto/caam_jr/meson.build\n+++ b/drivers/crypto/caam_jr/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/crypto/ccp/meson.build b/drivers/crypto/ccp/meson.build\nindex 915c4c854..071ccc5e7 100644\n--- a/drivers/crypto/ccp/meson.build\n+++ b/drivers/crypto/ccp/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n dep = dependency('libcrypto', required: false)\ndiff --git a/drivers/crypto/dpaa2_sec/meson.build b/drivers/crypto/dpaa2_sec/meson.build\nindex 8fa4827ed..d197cda1a 100644\n--- a/drivers/crypto/dpaa2_sec/meson.build\n+++ b/drivers/crypto/dpaa2_sec/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/crypto/dpaa_sec/meson.build b/drivers/crypto/dpaa_sec/meson.build\nindex 8a5709846..134af88da 100644\n--- a/drivers/crypto/dpaa_sec/meson.build\n+++ b/drivers/crypto/dpaa_sec/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/crypto/octeontx/meson.build b/drivers/crypto/octeontx/meson.build\nindex 423737ee1..a9f2d3157 100644\n--- a/drivers/crypto/octeontx/meson.build\n+++ b/drivers/crypto/octeontx/meson.build\n@@ -1,6 +1,6 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Cavium, Inc\n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n \ndiff --git a/drivers/event/dpaa/meson.build b/drivers/event/dpaa/meson.build\nindex 0914f858e..11b1fe669 100644\n--- a/drivers/event/dpaa/meson.build\n+++ b/drivers/event/dpaa/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += ['pmd_dpaa']\ndiff --git a/drivers/event/dpaa2/meson.build b/drivers/event/dpaa2/meson.build\nindex a0db6fc21..a94bc5643 100644\n--- a/drivers/event/dpaa2/meson.build\n+++ b/drivers/event/dpaa2/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += ['bus_vdev', 'pmd_dpaa2', 'pmd_dpaa2_sec']\ndiff --git a/drivers/mempool/dpaa/meson.build b/drivers/mempool/dpaa/meson.build\nindex 9163b3db3..c4c8ebc09 100644\n--- a/drivers/mempool/dpaa/meson.build\n+++ b/drivers/mempool/dpaa/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/mempool/dpaa2/meson.build b/drivers/mempool/dpaa2/meson.build\nindex 6b6ead617..9a8b28d7c 100644\n--- a/drivers/mempool/dpaa2/meson.build\n+++ b/drivers/mempool/dpaa2/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex 7520a16e3..4c444f495 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017-2019 Intel Corporation\n \n-if host_machine.system() == 'windows'\n+if is_windows\n \tsubdir_done()\n endif\n \ndiff --git a/drivers/net/af_packet/meson.build b/drivers/net/af_packet/meson.build\nindex 92f6a9715..92c306c73 100644\n--- a/drivers/net/af_packet/meson.build\n+++ b/drivers/net/af_packet/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n sources = files('rte_eth_af_packet.c')\ndiff --git a/drivers/net/avp/meson.build b/drivers/net/avp/meson.build\nindex b7ffdfc80..8138cb22d 100644\n--- a/drivers/net/avp/meson.build\n+++ b/drivers/net/avp/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n sources = files('avp_ethdev.c')\ndiff --git a/drivers/net/axgbe/meson.build b/drivers/net/axgbe/meson.build\nindex 548ffff7a..6decb25d4 100644\n--- a/drivers/net/axgbe/meson.build\n+++ b/drivers/net/axgbe/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n \ndiff --git a/drivers/net/dpaa/meson.build b/drivers/net/dpaa/meson.build\nindex 62dec7b04..8e5418bd6 100644\n--- a/drivers/net/dpaa/meson.build\n+++ b/drivers/net/dpaa/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += ['mempool_dpaa']\ndiff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build\nindex 53e1d8189..a0ea99238 100644\n--- a/drivers/net/dpaa2/meson.build\n+++ b/drivers/net/dpaa2/meson.build\n@@ -3,7 +3,7 @@\n \n version = 2\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n \ndiff --git a/drivers/net/enetc/meson.build b/drivers/net/enetc/meson.build\nindex 733156bbf..7d0c2ffe7 100644\n--- a/drivers/net/enetc/meson.build\n+++ b/drivers/net/enetc/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n \ndiff --git a/drivers/net/failsafe/meson.build b/drivers/net/failsafe/meson.build\nindex a249ff4af..dfd4067cb 100644\n--- a/drivers/net/failsafe/meson.build\n+++ b/drivers/net/failsafe/meson.build\n@@ -5,7 +5,7 @@ cflags += '-std=gnu99'\n cflags += '-D_DEFAULT_SOURCE'\n cflags += '-D_XOPEN_SOURCE=700'\n cflags += '-pedantic'\n-if host_machine.system() == 'linux'\n+if is_linux\n \tcflags += '-DLINUX'\n else\n \tcflags += '-DBSD'\ndiff --git a/drivers/net/nfp/meson.build b/drivers/net/nfp/meson.build\nindex ba6a22e8b..ea51ac3c3 100644\n--- a/drivers/net/nfp/meson.build\n+++ b/drivers/net/nfp/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n sources = files('nfpcore/nfp_cpp_pcie_ops.c',\ndiff --git a/drivers/net/softnic/meson.build b/drivers/net/softnic/meson.build\nindex da249c068..dd1d610ea 100644\n--- a/drivers/net/softnic/meson.build\n+++ b/drivers/net/softnic/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n allow_experimental_apis = true\ndiff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build\nindex 9cb7142a0..c407a1f35 100644\n--- a/drivers/net/tap/meson.build\n+++ b/drivers/net/tap/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 Luca Boccassi <bluca@debian.org>\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n sources = files(\ndiff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/meson.build\nindex d3ada878a..6655859f8 100644\n--- a/drivers/net/vdev_netvsc/meson.build\n+++ b/drivers/net/vdev_netvsc/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n         build = false\n endif\n sources = files('vdev_netvsc.c')\ndiff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.build\nindex e43ce6bbc..794905401 100644\n--- a/drivers/net/virtio/meson.build\n+++ b/drivers/net/virtio/meson.build\n@@ -15,7 +15,7 @@ elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64')\n \tsources += files('virtio_rxtx_simple_neon.c')\n endif\n \n-if host_machine.system() == 'linux'\n+if is_linux\n \tdpdk_conf.set('RTE_VIRTIO_USER', 1)\n \n \tsources += files('virtio_user_ethdev.c',\ndiff --git a/examples/l3fwd-power/meson.build b/examples/l3fwd-power/meson.build\nindex a3c5c2f14..2c84123b6 100644\n--- a/examples/l3fwd-power/meson.build\n+++ b/examples/l3fwd-power/meson.build\n@@ -6,7 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n allow_experimental_apis = true\ndiff --git a/examples/meson.build b/examples/meson.build\nindex d72382fca..e4babf6bf 100644\n--- a/examples/meson.build\n+++ b/examples/meson.build\n@@ -36,7 +36,7 @@ foreach example: examples\n \text_deps = [execinfo]\n \tincludes = [include_directories(example)]\n \tdeps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']\n-\tif host_machine.system() == 'windows'\n+\tif is_windows\n \t\tdeps = ['eal'] # only supported lib on Windows currently\n \tendif\n \tsubdir(example)\ndiff --git a/examples/tep_termination/meson.build b/examples/tep_termination/meson.build\nindex 6d3636243..a75cc7100 100644\n--- a/examples/tep_termination/meson.build\n+++ b/examples/tep_termination/meson.build\n@@ -6,7 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += ['hash', 'vhost']\ndiff --git a/examples/vdpa/meson.build b/examples/vdpa/meson.build\nindex 2e38a069f..73f129cd9 100644\n--- a/examples/vdpa/meson.build\n+++ b/examples/vdpa/meson.build\n@@ -6,11 +6,11 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += 'vhost'\n allow_experimental_apis = true\n sources = files(\n \t'main.c'\n-)\n\\ No newline at end of file\n+)\ndiff --git a/examples/vhost/meson.build b/examples/vhost/meson.build\nindex 7b498076c..872d51153 100644\n--- a/examples/vhost/meson.build\n+++ b/examples/vhost/meson.build\n@@ -6,7 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n deps += 'vhost'\ndiff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build\nindex ca1248023..2e9339aa7 100644\n--- a/examples/vhost_scsi/meson.build\n+++ b/examples/vhost_scsi/meson.build\n@@ -6,7 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n \ndiff --git a/kernel/meson.build b/kernel/meson.build\nindex 2c8fa76d0..b247e2df4 100644\n--- a/kernel/meson.build\n+++ b/kernel/meson.build\n@@ -1,4 +1,4 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n-subdir(host_machine.system())\n+subdir(exec_env)\ndiff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.build\nindex 6becfe86d..6cfe60e1f 100644\n--- a/lib/librte_eventdev/meson.build\n+++ b/lib/librte_eventdev/meson.build\n@@ -4,7 +4,7 @@\n version = 6\n allow_experimental_apis = true\n \n-if host_machine.system() == 'linux'\n+if is_linux\n \tcflags += '-DLINUX'\n else\n \tcflags += '-DBSD'\ndiff --git a/lib/librte_kni/meson.build b/lib/librte_kni/meson.build\nindex 055ae1227..400af9a4d 100644\n--- a/lib/librte_kni/meson.build\n+++ b/lib/librte_kni/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n-if host_machine.system() != 'linux' or not dpdk_conf.get('RTE_ARCH_64')\n+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')\n \tbuild = false\n endif\n version = 2\ndiff --git a/lib/librte_power/meson.build b/lib/librte_power/meson.build\nindex 02e0337ce..cc6c30075 100644\n--- a/lib/librte_power/meson.build\n+++ b/lib/librte_power/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n sources = files('rte_power.c', 'power_acpi_cpufreq.c',\ndiff --git a/lib/librte_vhost/meson.build b/lib/librte_vhost/meson.build\nindex e33e6fc16..3090bbe08 100644\n--- a/lib/librte_vhost/meson.build\n+++ b/lib/librte_vhost/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017-2018 Intel Corporation\n \n-if host_machine.system() != 'linux'\n+if not is_linux\n \tbuild = false\n endif\n if has_libnuma == 1\ndiff --git a/lib/meson.build b/lib/meson.build\nindex 595314d7d..a379dd682 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -30,7 +30,7 @@ libraries = [\n \t# flow_classify lib depends on pkt framework table lib\n \t'flow_classify', 'bpf', 'telemetry']\n \n-if host_machine.system() == 'windows'\n+if is_windows\n \tlibraries = ['kvargs','eal'] # only supported libraries for windows\n endif\n \n@@ -123,7 +123,7 @@ foreach l:libraries\n \t\t\t\t\tmeson.current_source_dir(), dir_name, name)\n \t\t\texports = []\n \t\t\timplib = dir_name + '.dll.a'\n-\t\t\tif host_machine.system() == 'windows'\n+\t\t\tif is_windows\n \t\t\t\texports = '@0@/@1@/rte_@2@_exports.def'.format(\n \t\t\t\t\tmeson.current_source_dir(), dir_name, name)\n \t\t\t\tlk_args = ['-Wl,/def:' + exports, '-Wl,/implib:lib\\\\' + implib]\n",
    "prefixes": [
        "v2",
        "2/5"
    ]
}