From patchwork Tue Feb 27 17:25:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 129841 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp540694edc; Tue, 27 Feb 2018 09:28:57 -0800 (PST) X-Google-Smtp-Source: AH8x224YJm+sPAIzzCnU3L5fD/d61qLpFQoMx7J6ZVfsVrhNkGss3N6v49ObIBDuck2JnqG2VMHj X-Received: by 10.28.39.67 with SMTP id n64mr13119187wmn.0.1519752537713; Tue, 27 Feb 2018 09:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519752537; cv=none; d=google.com; s=arc-20160816; b=d6NsYcYrGLLCNxDywH8e+Heh9xm+q7c98RrqDqTmkzB8hvN1U8kk6zPAVO3vfldpTM glxGeTrb5ZM8aZfsxCsbjve9JCvv1AMDvf95gMcWNmc66dQar9AuxWAKdw8kyYWj9UDN +mINE736iYxucQB7eLkKddRDfab3JZvX1a+erQm17gT3BuvrJDwLKqQyWKt1QvLy70yR rC2VLNsTOHYwuUYJh0EqGhiU9HAcvqqNscf1DUCbSPDxiESiSN0CEEiQphrSVfXBargr yQ1FxBOZLTlwjuNNmR+YkxR1DJQFUV22IOXTqBrDVqrXPgulsT334z7sUK9DoNJv49V2 +r9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=5qhiEGKJfwYBvtfECkEuVUlu9KSTBgzr4wWVjSRVPIE=; b=A1ask2dnx1Igy3YvzvQ4OW1kX3tH2HyvOGzMrgeFfh9LNJhcHFtdoDoHpgpct81gAY r5CTF6KV5IbCwUQ5iXInkWEqO6Q+kWXpghE63TLYDjGtY1Beq0N1h8MOt0H+J3/IkVfl 57w59OWJI/fhRZmrmLCCMX2yDFdccYw9wwdZeukKMXc0L6DzBya0JLEpefwWUSQBwZ8m +ahCRhOvFMJr86CBpfTXNQ+f3YlLLetGZZsyXU8NcC9ntV/hvqmyCj6NBN3r4H8c4uTn 1K77o3vHH1rJYZjQUWmrGO/QDLEOuV6zDSrkzkys/sr8I9LSBZk6xqoqjnhaOMX2yI3Z Nelg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LTuHzKd2; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f189si1472366wme.207.2018.02.27.09.28.57; Tue, 27 Feb 2018 09:28:57 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LTuHzKd2; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B44B5B28; Tue, 27 Feb 2018 18:27:45 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0083.outbound.protection.outlook.com [104.47.0.83]) by dpdk.org (Postfix) with ESMTP id D017A4C97 for ; Tue, 27 Feb 2018 18:27:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5qhiEGKJfwYBvtfECkEuVUlu9KSTBgzr4wWVjSRVPIE=; b=LTuHzKd2AK/04MEwuivFSPeO+czNx6mKcLzNXtI7eGqo3b7ihq/9eKZjBYXh0b2uPp/KZzYhn7znHJj8kKD2beBdNXjzonU4h0El5X/56rqG/0fjo7TMZq55Ob5FkBBjgVYE4ojN+b1MpmmRCGJR4ci81k+3RjcaxqNtbU5bTmM= Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Tue, 27 Feb 2018 17:27:38 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net, shreyansh.jain@nxp.com, Akhil Goyal Date: Tue, 27 Feb 2018 22:55:52 +0530 Message-Id: <1519752352-15442-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519752352-15442-1-git-send-email-hemant.agrawal@nxp.com> References: <1519752352-15442-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0017.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::27) To DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 50445549-ed79-4d81-eb1a-08d57e07669b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:DB4PR04MB0768; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 3:1LTCOoVnX5dSOYocPwGygD8oAEhMu7wMQ1p9i/60XJD/UDzuSQAWtstNBsvD5hUcuaaujeiC0i0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mc/G7un8P0INfse8Yp1Bmm9Obi9Xgr83XH5n9c6VQktlOHiv1N+H2FK/vGEooc30vnT8E1SCdevJknJPJSTunT0nSGd43FGXUg4exwgnO5hVThbdwbpaiBy+rr9Hd5ob/SgOrZivFzCJvND3JgmD9QeE0jbcJOsrOGjHSEpNSCThT2X18LGixuLAmQWo5mruUGgzTaUeO2wf+BJWfkLpMpuaCPwN+w6G+ti+nG+zBVcpAole9PC2zXCk+xa4cVQ60TSV5T7NsxBm1+2; 4:lInCyu4PY7U6UzbDY5pmGv8R2ONokFdQw6WZy4pMM88WLR4Atg2GnavpZ69ip9ScHgflakWhd06B4pMeAg4HNFdzKT/fd3RIGU5tvbLt9SFvmJgtUvGqresEtRsDhxnHXtGgyKG3fOSeak2MUqqMjXyDxNeUBw8U9zzEv19rtqn9AYSXYZXq1AeRT3tBDNLClJqEcBRI/AFNZITE8iXhzM750ZBvicLEGEppC0dxkWt7I8AGGFZH1V7bujq1s2XWoL0To5miZ28b0m5lKRJQPCjcjOngZevAgqeot4n1Z5W6aoeX3YRzdoNGl/SXK2ojmAM8nVqfZksQGwt+t6lVXl5WfF8E61WPLgBQ7ue00yvOYpF2OdKWGh3ggz3sd0lE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(3231220)(944501198)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:DB4PR04MB0768; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0768; X-Forefront-PRVS: 05961EBAFC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(39380400002)(346002)(199004)(189003)(26005)(316002)(68736007)(105586002)(16586007)(6512007)(36756003)(66066001)(2906002)(47776003)(386003)(6346003)(4326008)(53936002)(6486002)(8676002)(55236004)(8936002)(97736004)(81156014)(76176011)(59450400001)(3846002)(5009440100003)(7736002)(5660300001)(6116002)(25786009)(50226002)(6506007)(305945005)(478600001)(81166006)(51416003)(52116002)(6666003)(106356001)(86362001)(2950100002)(16526019)(48376002)(50466002)(186003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0768; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0768; 23:gHeZOhCiQ/wh+M2xraJe9uPJMMUBvFCaTNEHpknBE?= UBUWhZp7vcxeKrT3G+kCunEgMCPV7YMy34+oa8ewVBDAMgbeDdDutYrcXnYuZ9krw9TPTgd+H5nFWdI98ISzGqO0Y9A4xM08AOaNXVUfXJ+wKEUTPOcxNHl3B8Ap0pUqexRR+1jFY62cY9PhRLDHF4VcQ8Qq3lbWTIT+EJ8tzeSpEzR6Feqr2YIamzJFjfO6p8ZreoOEYRrc3R4IogQ42jXbTQxsgJepPw4dw7idu/jqZ991s5vieK/+ySLenXn2GGSQ/C/28pr/2xnlAze2l+T5gg6S06ErNhBTz7MeEpcy6x6n7mmli9PLhJqdQ5ptS2YOJNvUmCE9fb2LOAZGYKggSxF3j08hvh15XUmeHa76OQoOFYfBE8zttiVpvHH7LQXNysZcWt/hRv+wd2z38vM9KJI48Dz6OWmpRkrTYc7m7JDUA/XmGv3tEPsj1zckCAqEYfXyTgfm2dFzrvn9fTzkKqS+gDhz9L9V5Z6vxyKDqZGbHifbSUJUG2ovWDaLjNb+VobObcQS8uizSc5TOCePuTTUJ9Kk44SVMviTNbTndv9gmKJcIwEulRPwUdqhJX3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Aen53jLl5IzNJaf1FVc9aAv1t3ERcrb6YCNnNec81NI4ixYBNoolD9zSbyf/lLU+VrjEIv6L9x4=; 24:K6zT/LsdPfCLOQYhG0lfmZRE4LeQ5v4JmWv6a99zdSwp6Pj5KVgPBOZqGmWOh6gtfz3pQ1kyfLOD07qps+phHphGW0fBC1K5EhTN1ZGezm4=; 7:/f/B+xKPxVoG4W5RRLBs7L5uWhK3PrV42oXEdIx7eO4WyY58D49J/rZtGzuD0YbtSl+Bvbeolnv8JxuFlOh3zC7Xhu6/DVTWvCbzEwcj4Hgb3xk3puHcWOHHaJp8y66hGvi7f2ZhUGW/kPP9MZKTZzniCpOnWWw3biRzd83Ko+DhR6hPgszNGfaaHnRkD3mbdHBQqUpp4mbBELo4+q5RuBYbsICRMKmIOxPLiHmpwLL7nUHx8P0/5ZsJd+t1jSAc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2018 17:27:38.3845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50445549-ed79-4d81-eb1a-08d57e07669b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0768 Subject: [dpdk-dev] [PATCH 7/7] build: add meson support for dpaaX platforms 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" Signed-off-by: Akhil Goyal Signed-off-by: Hemant Agrawal --- app/test-pmd/meson.build | 3 +++ config/arm/arm64_dpaa2_linuxapp_gcc | 13 +++++++++++++ config/arm/arm64_dpaa_linuxapp_gcc | 14 ++++++++++++++ config/arm/meson.build | 13 +++++++++++++ drivers/bus/dpaa/meson.build | 29 +++++++++++++++++++++++++++++ drivers/bus/fslmc/meson.build | 28 ++++++++++++++++++++++++++++ drivers/bus/meson.build | 4 ++-- drivers/crypto/dpaa2_sec/meson.build | 16 ++++++++++++++++ drivers/crypto/dpaa_sec/meson.build | 16 ++++++++++++++++ drivers/crypto/meson.build | 3 +++ drivers/event/dpaa/meson.build | 11 +++++++++++ drivers/event/dpaa2/meson.build | 12 ++++++++++++ drivers/event/meson.build | 2 +- drivers/mempool/dpaa/meson.build | 9 +++++++++ drivers/mempool/dpaa2/meson.build | 9 +++++++++ drivers/mempool/meson.build | 2 +- drivers/net/dpaa/meson.build | 15 +++++++++++++++ drivers/net/dpaa2/meson.build | 16 ++++++++++++++++ drivers/net/meson.build | 2 +- 19 files changed, 212 insertions(+), 5 deletions(-) create mode 100644 config/arm/arm64_dpaa2_linuxapp_gcc create mode 100644 config/arm/arm64_dpaa_linuxapp_gcc create mode 100644 drivers/bus/dpaa/meson.build create mode 100644 drivers/bus/fslmc/meson.build create mode 100644 drivers/crypto/dpaa2_sec/meson.build create mode 100644 drivers/crypto/dpaa_sec/meson.build create mode 100644 drivers/event/dpaa/meson.build create mode 100644 drivers/event/dpaa2/meson.build create mode 100644 drivers/mempool/dpaa/meson.build create mode 100644 drivers/mempool/dpaa2/meson.build create mode 100644 drivers/net/dpaa/meson.build create mode 100644 drivers/net/dpaa2/meson.build -- 2.7.4 diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 7ed74db..83f8bb1 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -32,6 +32,9 @@ if dpdk_conf.has('RTE_LIBRTE_SOFTNIC_PMD') sources += files('tm.c') deps += 'pmd_softnic' endif +if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD') + deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa'] +endif dep_objs = [] foreach d:deps diff --git a/config/arm/arm64_dpaa2_linuxapp_gcc b/config/arm/arm64_dpaa2_linuxapp_gcc new file mode 100644 index 0000000..87337fb --- /dev/null +++ b/config/arm/arm64_dpaa2_linuxapp_gcc @@ -0,0 +1,13 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = 'dpaa2' diff --git a/config/arm/arm64_dpaa_linuxapp_gcc b/config/arm/arm64_dpaa_linuxapp_gcc new file mode 100644 index 0000000..f769435 --- /dev/null +++ b/config/arm/arm64_dpaa_linuxapp_gcc @@ -0,0 +1,14 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = 'dpaa' diff --git a/config/arm/meson.build b/config/arm/meson.build index 4e788a4..c1ab6ed 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -54,6 +54,17 @@ flags_cavium = [ ['RTE_MAX_LCORE', 96], ['RTE_MAX_VFIO_GROUPS', 128], ['RTE_RING_USE_C11_MEM_MODEL', false]] +flags_dpaa = [ + ['RTE_MACHINE', '"dpaa"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 16]] +flags_dpaa2 = [ + ['RTE_MACHINE', '"dpaa2"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 16], + ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', 'n']] ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] @@ -69,6 +80,8 @@ impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell', flags_generic, machine_args_generic] impl_0x69 = ['Intel', flags_generic, machine_args_generic] +impl_dpaa = ['NXP DPAA', flags_dpaa, machine_args_generic] +impl_dpaa2 = ['NXP DPAA2', flags_dpaa2, machine_args_generic] if cc.get_define('__clang__') != '' diff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build new file mode 100644 index 0000000..c4257a5 --- /dev/null +++ b/drivers/bus/dpaa/meson.build @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['pci', 'ethdev', 'eventdev'] +sources = files('dpaa_bus.c', + 'base/fman/fman.c', + 'base/fman/fman_hw.c', + 'base/fman/of.c', + 'base/fman/netcfg_layer.c', + 'base/qbman/process.c', + 'base/qbman/bman.c', + 'base/qbman/bman_driver.c', + 'base/qbman/qman.c', + 'base/qbman/qman_driver.c', + 'base/qbman/dpaa_alloc.c', + 'base/qbman/dpaa_sys.c') + +allow_experimental_apis = true + +if cc.has_argument('-Wno-cast-qual') + cflags += '-Wno-cast-qual' +endif + +includes += include_directories('include', 'base/qbman') +cflags += ['-D_GNU_SOURCE'] diff --git a/drivers/bus/fslmc/meson.build b/drivers/bus/fslmc/meson.build new file mode 100644 index 0000000..87475ee --- /dev/null +++ b/drivers/bus/fslmc/meson.build @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['eal', 'ethdev', 'eventdev'] +sources = files('qbman/qbman_portal.c', + 'qbman/qbman_debug.c', + 'mc/dpmng.c', + 'mc/dpbp.c', + 'mc/dpio.c', + 'mc/mc_sys.c', + 'mc/dpcon.c', + 'mc/dpci.c', + 'portal/dpaa2_hw_dpio.c', + 'portal/dpaa2_hw_dpbp.c', + 'portal/dpaa2_hw_dpci.c', + 'fslmc_vfio.c', + 'fslmc_bus.c') + +allow_experimental_apis = true + +includes += include_directories('../../../lib/librte_eal/linuxapp/eal') +includes += include_directories('mc', 'qbman/include', 'portal') +dpdk_conf.set('CONFIG_RTE_ARCH_ARM_TUNE', 'cortex-a72') +cflags += ['-D_GNU_SOURCE'] diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index c6af500..2187f6b 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['pci', 'vdev'] -std_deps = ['eal'] +drivers = ['pci', 'vdev', 'fslmc', 'dpaa'] +std_deps = ['eal', 'kvargs'] config_flag_fmt = 'RTE_LIBRTE_@0@_BUS' driver_name_fmt = 'rte_bus_@0@' diff --git a/drivers/crypto/dpaa2_sec/meson.build b/drivers/crypto/dpaa2_sec/meson.build new file mode 100644 index 0000000..e80f15d --- /dev/null +++ b/drivers/crypto/dpaa2_sec/meson.build @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_fslmc', 'security', 'mempool_dpaa2'] +sources = files('dpaa2_sec_dpseci.c', + 'mc/dpseci.c') + +allow_experimental_apis = true + +includes += include_directories('mc', 'hw') +dpdk_conf.set('RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS', 2048) +ext_deps += dep diff --git a/drivers/crypto/dpaa_sec/meson.build b/drivers/crypto/dpaa_sec/meson.build new file mode 100644 index 0000000..10a7dd3 --- /dev/null +++ b/drivers/crypto/dpaa_sec/meson.build @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_dpaa', 'security'] +sources = files('dpaa_sec.c') + +allow_experimental_apis = true + +includes += include_directories('../dpaa2_sec/') +dpdk_conf.set('RTE_LIBRTE_DPAA_MAX_CRYPTODEV', 4) +dpdk_conf.set('RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS', 2048) +ext_deps += dep diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 17041ad..a08bce5 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -2,6 +2,9 @@ # Copyright(c) 2017 Intel Corporation drivers = ['qat', 'null', 'openssl'] + + drivers += ['dpaa_sec', 'dpaa2_sec'] + std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' driver_name_fmt = 'rte_pmd_@0@' diff --git a/drivers/event/dpaa/meson.build b/drivers/event/dpaa/meson.build new file mode 100644 index 0000000..0a26d5d --- /dev/null +++ b/drivers/event/dpaa/meson.build @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['mempool_dpaa', 'bus_dpaa', 'pmd_dpaa'] +sources = files('dpaa_eventdev.c', +) + +allow_experimental_apis = true diff --git a/drivers/event/dpaa2/meson.build b/drivers/event/dpaa2/meson.build new file mode 100644 index 0000000..686b622 --- /dev/null +++ b/drivers/event/dpaa2/meson.build @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['mempool_dpaa2', 'bus_fslmc', 'bus_vdev', 'pmd_dpaa2'] +sources = files('dpaa2_hw_dpcon.c', + 'dpaa2_eventdev.c' +) + +allow_experimental_apis = true diff --git a/drivers/event/meson.build b/drivers/event/meson.build index d7bc485..f1c3678 100644 --- a/drivers/event/meson.build +++ b/drivers/event/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['skeleton', 'sw', 'octeontx'] +drivers = ['skeleton', 'sw', 'octeontx', 'dpaa', 'dpaa2'] std_deps = ['eventdev', 'kvargs'] config_flag_fmt = 'RTE_LIBRTE_@0@_EVENTDEV_PMD' driver_name_fmt = 'rte_pmd_@0@_event' diff --git a/drivers/mempool/dpaa/meson.build b/drivers/mempool/dpaa/meson.build new file mode 100644 index 0000000..08423c2 --- /dev/null +++ b/drivers/mempool/dpaa/meson.build @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_dpaa'] +sources = files('dpaa_mempool.c') diff --git a/drivers/mempool/dpaa2/meson.build b/drivers/mempool/dpaa2/meson.build new file mode 100644 index 0000000..402d087 --- /dev/null +++ b/drivers/mempool/dpaa2/meson.build @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['mbuf', 'ethdev', 'kvargs', 'bus_fslmc'] +sources = files('dpaa2_hw_mempool.c') diff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build index 5991856..47431cd 100644 --- a/drivers/mempool/meson.build +++ b/drivers/mempool/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['ring', 'stack', 'octeontx'] +drivers = ['ring', 'stack', 'octeontx', 'dpaa', 'dpaa2'] std_deps = ['mempool'] config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL' driver_name_fmt = 'rte_mempool_@0@' diff --git a/drivers/net/dpaa/meson.build b/drivers/net/dpaa/meson.build new file mode 100644 index 0000000..e5a2d17 --- /dev/null +++ b/drivers/net/dpaa/meson.build @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['bus_dpaa'] +deps += ['mempool_dpaa'] + +sources = files('dpaa_ethdev.c', + 'dpaa_rxtx.c') + +allow_experimental_apis = true + +install_headers('rte_pmd_dpaa.h') diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build new file mode 100644 index 0000000..025c587 --- /dev/null +++ b/drivers/net/dpaa2/meson.build @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_fslmc'] # same with vdev bus +deps += ['mempool_dpaa2'] # same with vdev bus +sources = files('dpaa2_ethdev.c', + 'dpaa2_rxtx.c', + 'base/dpaa2_hw_dpni.c', + 'mc/dpni.c', + 'mc/dpkg.c') + +includes += include_directories('base', 'mc') diff --git a/drivers/net/meson.build b/drivers/net/meson.build index 704cbe3..6d7a772 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -4,7 +4,7 @@ drivers = ['af_packet', 'bonding', 'e1000', 'fm10k', 'i40e', 'ixgbe', 'null', 'octeontx', 'pcap', 'ring', - 'sfc', 'thunderx'] + 'sfc', 'thunderx', 'dpaa', 'dpaa2'] std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc std_deps += ['bus_pci'] # very many PMDs depend on PCI, so make std std_deps += ['bus_vdev'] # same with vdev bus