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 EAD6FA04C7 for ; Wed, 16 Sep 2020 07:13:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D24711C1B2; Wed, 16 Sep 2020 07:13:06 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id EB0ED1C1A6; Wed, 16 Sep 2020 07:13:02 +0200 (CEST) IronPort-SDR: KXc0xnaPPu0MNOEZQ8B4bkVQsDkam4BfaRufbwHLim4/gvndAiw1gOEOOMgDExTyodcic61rcf Awte3NJWXa+w== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="220959461" X-IronPort-AV: E=Sophos;i="5.76,431,1592895600"; d="scan'208";a="220959461" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 22:13:01 -0700 IronPort-SDR: /AhHntCSZYF+N4JBsjglx7R7VguOt1l/lLNTlEcpBQkTjzJBD0jwxb15yZmQty6nnaU6snFviW PPl856F2MDag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,431,1592895600"; d="scan'208";a="409424246" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga001.fm.intel.com with ESMTP; 15 Sep 2020 22:13:01 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 15 Sep 2020 22:12:57 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 16 Sep 2020 13:12:55 +0800 Received: from shsmsx605.ccr.corp.intel.com ([10.109.6.215]) by SHSMSX605.ccr.corp.intel.com ([10.109.6.215]) with mapi id 15.01.1713.004; Wed, 16 Sep 2020 13:12:55 +0800 From: "Zhou, JunX W" To: "Di, ChenxuX" , "dev@dpdk.org" CC: "hemant.agrawal@nxp.com" , "sachin.saxena@nxp.com" , "Di, ChenxuX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/dpaa2: fix build error about timesync functions Thread-Index: AQHWiw3sTwI9d8Xq1ECXtDCLmGq/l6lquYjw Date: Wed, 16 Sep 2020 05:12:55 +0000 Message-ID: References: <20200915024055.72103-1-chenxux.di@intel.com> In-Reply-To: <20200915024055.72103-1-chenxux.di@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/dpaa2: fix build error about timesync functions X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Tested-by: Zhou, Jun -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Chenxu Di Sent: Tuesday, September 15, 2020 10:41 AM To: dev@dpdk.org Cc: hemant.agrawal@nxp.com; sachin.saxena@nxp.com; Di, ChenxuX ; stable@dpdk.org Subject: [dpdk-dev] [PATCH] net/dpaa2: fix build error about timesync funct= ions When the build option has '-DRTE_LIBRTE_IEEE1588=3D1', the announce of time= sync functions will be build. However the dpdk_conf doesn't hav RTE_LIBRTE_IEEE1588 so that the file dpaa= 2_ptp.c will not be build. It cause the build error. This patch fixes it by adding set for dpdk_conf. Fixes: 184c39d16568 ("net/dpaa2: add DPRTC sub-module") Cc: stable@dpdk.org Signed-off-by: Chenxu Di --- drivers/net/dpaa2/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build = index 6dd0eb274..d9aadfdae 100644 --- a/drivers/net/dpaa2/meson.build +++ b/drivers/net/dpaa2/meson.build @@ -17,6 +17,10 @@ sources =3D files('base/dpaa2_hw_dpni.c', 'mc/dpdmux.c', 'mc/dpni.c') =20 +if '-DRTE_LIBRTE_IEEE1588=3D1' in get_option('c_args') + dpdk_conf.set('RTE_LIBRTE_IEEE1588', 1) endif + if dpdk_conf.has('RTE_LIBRTE_IEEE1588') sources +=3D files('mc/dprtc.c') sources +=3D files('dpaa2_ptp.c') -- 2.17.1