From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01hn0209.outbound.protection.outlook.com [104.47.32.209]) by dpdk.org (Postfix) with ESMTP id BEB8EAA9B for ; Mon, 2 Apr 2018 11:10:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=E/2vnAsprNAyVTCG9x4iD4wUiuC7szwk5P+pI31aJhQ=; b=n1OKSgoj9QJTJO25EdeL8iQrJlR+xxW/Tp0dugfDNfkrqo4D7BrCGUpKVZZDmgWkkIWdMjtkDgCjanIOkcudIM7UTKc2C4J3F0E9942yF4sHKs/W3fwHtC2NT8xpHemauIchK37wvqrFsyan4Kl2PcwfEHpNZpi5ma2uFTpdKgQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 09:10:28 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, thomas@monjalon.net, anatoly.burakov@intel.com, lironh@marvell.com, bruce.richardson@intel.com, fiona.trahe@intel.com, shreyansh.jain@nxp.com, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 2 Apr 2018 14:39:59 +0530 Message-Id: <20180402091000.9208-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> References: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR0101CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::28) To CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2d6a94d7-79cb-4a58-86dd-08d598799654 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:g4MjwqWxwGN6+tyWd3kC/r3xWq7CdJ7vS8if0NaEMcEGy38mmaF7e0WGjIFCUGu03XqckdlrQd+4pmtjJCVkydco7rNB8yPaKQ0LryERVpnhOXYXCayGXxRIXwzmWS9PB6tp+OIajndpSvKoXdUblsS4lm6rhtqZb8mLzLeqdWxz0TUjpHZa9dRPtf+kpns0+/WBy5ASI1wFNlfmImMLno4JK/EZdgDiK2KTYqAaKbRDcfJCqFxVmshUmhHK5D13; 25:ye8nojNXo6U92c4DxzoulEiO0JtbG7/IHna9S7BGJ1+bdLQs9MhXeNkS9vn33r+lx43vf01WQGFYxgRyZkAwzdJ0NFGUeD1QgniYCsGzZy9ty9Mj24iT1tL6jiPVnHBsmlUcnoJy10WH90K8COYLzMdEJ8csVqWpJiIzafWNwv55wm6PdP7h6Ar+x6toLHcEhI9sBIRfgMtkH6uGYfM8I8xKlzEnvxpADt+rgwPtSyEzh9Ox914VCo8tJqaS5k/Kq989IZoC5nGOOeaaDyoWPojX1ZvW5eQcuycghbCNEi5s39oA/LQrO42nNB07EHyuPcA3Fyp7AzV58HpHA3LTZw==; 31:ihHTHBklyHmeGTZVkgOg1T6GdalV5lBdJxIRJz4yDegN0X20cb0xG9VpFUl1z1VDKeZyxb9manu9u72QyqXoUz3E7X9QxhpJcYgQDTQwXJfsevRlLMH05YalbVLze/l1ipwe1zdoAjcPwuL/9tiUuMnwzf4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QPsfZXRdF8QsPSTbArbE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(66839620246622); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(2232076)(944501327)(52105095)(10201501046)(3002001)(93006095)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(346002)(396003)(376002)(39850400004)(366004)(39380400002)(199004)(189003)(8936002)(59450400001)(107886003)(105586002)(6506007)(7736002)(3846002)(2616005)(53416004)(956004)(81166006)(305945005)(16586007)(6116002)(6666003)(26005)(2906002)(1076002)(1857600001)(53376002)(4326008)(47776003)(81156014)(478600001)(48376002)(16526019)(5660300001)(69596002)(8676002)(68736007)(386003)(5009440100003)(52116002)(42882007)(50226002)(446003)(53936002)(8656006)(97736004)(51416003)(50466002)(575784001)(6486002)(316002)(11346002)(76176011)(36756003)(66066001)(106356001)(25786009)(72206003)(476003)(486005)(6512007)(486005)(966005)(6306002)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:CY4PR07MB3464; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:hUZIWeEwSjg0z95bcuVbcgMIjDUQJDT4yieBMJCtK?= =?us-ascii?Q?FIYG0/KamOFif/DJB9rrD28fRo3P9ZltWb1SM0ynGaJW0L1eMxgYhym8AT5D?= =?us-ascii?Q?LcTGMz8mTisCp9oCnDZ8YgzsW7JB4AdMPZ+knycPqldMG3Rc22/vW9k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IhMBZiMk79xfhvr6Zpb6MyMs7SOETRERu/IShLG89HMwwCc2cZtk8VRhqIJTAL+Eqlxhg3QLz+6nfjaKHV0sL2uRnN51ryKQT52+uJDEtaB5H9 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 09:10:28.8067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2d6a94d7-79cb-4a58-86dd-08d598799654 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v4 1/2] drivers: add common folder 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: , X-List-Received-Date: Mon, 02 Apr 2018 09:10:34 -0000 Add driver/common folder and skeleton makefile for adding commonly used functions across mempool, event and net devices. Signed-off-by: Pavan Nikhilesh --- v4 Changes: - modified dependency order i.e common before bus. - updated MAINTAINERS file. - moved linking common lib in rte.app.mk above bus. v3 Changes: - Fix common lib naming scheme. v2 Changes: - Removed dependency on bus. Based on discussion on ml http://dpdk.org/ml/archives/dev/2018-March/092822.html http://dpdk.org/ml/archives/dev/2018-March/093271.html drivers/Makefile | 13 +++++++------ drivers/common/Makefile | 7 +++++++ drivers/common/meson.build | 6 ++++++ drivers/meson.build | 11 ++++++----- 4 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 drivers/common/Makefile create mode 100644 drivers/common/meson.build diff --git a/drivers/Makefile b/drivers/Makefile index a1fa8b917..3d9f86b00 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -3,18 +3,19 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += common DIRS-y += bus DIRS-y += mempool -DEPDIRS-mempool := bus +DEPDIRS-mempool := common bus DIRS-y += net -DEPDIRS-net := bus mempool +DEPDIRS-net := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += baseband -DEPDIRS-baseband := bus mempool +DEPDIRS-baseband := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto -DEPDIRS-crypto := bus mempool +DEPDIRS-crypto := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event -DEPDIRS-event := bus mempool net +DEPDIRS-event := common bus mempool net DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += raw -DEPDIRS-raw := bus mempool net event +DEPDIRS-raw := common bus mempool net event include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/common/Makefile b/drivers/common/Makefile new file mode 100644 index 000000000..192066307 --- /dev/null +++ b/drivers/common/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc +# + +include $(RTE_SDK)/mk/rte.vars.mk + +include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/common/meson.build b/drivers/common/meson.build new file mode 100644 index 000000000..ab774b8ef --- /dev/null +++ b/drivers/common/meson.build @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc + +std_deps = ['eal'] +config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON' +driver_name_fmt = 'rte_common_@0@' diff --git a/drivers/meson.build b/drivers/meson.build index b41a0f18e..b146f09c5 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -2,11 +2,12 @@ # Copyright(c) 2017 Intel Corporation # Defines the order in which the drivers are buit. -driver_classes = ['bus', - 'mempool', # depends on bus. - 'net', # depends on bus and mempool. - 'crypto', # depenss on bus, mempool (net in future). - 'event'] # depends on bus, mempool and net. +driver_classes = ['common', + 'bus', + 'mempool', # depends on common and bus. + 'net', # depends on common, bus and mempool. + 'crypto', # depends on common, bus and mempool (net in future). + 'event'] # depends on common, bus, mempool and net. foreach class:driver_classes drivers = [] -- 2.16.2