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 D8F58A04B7 for ; Thu, 17 Sep 2020 11:16:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A9EFA1D5C2; Thu, 17 Sep 2020 11:16:40 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 126AD1D5B3; Thu, 17 Sep 2020 11:16:37 +0200 (CEST) IronPort-SDR: ZLdRTLug0XufzJh+JRqIehROYR1Hfu5Fgazzpxigyo/xE2eEOBzxUiiDWKt5kFVZH7vFkgrHU8 hwOo6Bfs4+Hg== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="244497074" X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="244497074" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 02:16:37 -0700 IronPort-SDR: upD1xVtgO/Nihuc+/OgTQx+Hc0erqAVJZcZq1+is7LSvKwW2GWrmWmHiWdbtpgAGvJREE+tIXK VOn0+DlZwyHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="320152408" Received: from unknown (HELO localhost.localdomain) ([10.239.255.61]) by orsmga002.jf.intel.com with ESMTP; 17 Sep 2020 02:16:34 -0700 From: Chenxu Di To: dev@dpdk.org Cc: junx.w.zhou@intel.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com, ferruh.yigit@intel.com, Chenxu Di , stable@dpdk.org Date: Thu, 17 Sep 2020 08:43:57 +0000 Message-Id: <20200917084357.14717-1-chenxux.di@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915024055.72103-1-chenxux.di@intel.com> References: <20200915024055.72103-1-chenxux.di@intel.com> Subject: [dpdk-stable] [PATCH v2] 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" When the build option has '-DRTE_LIBRTE_IEEE1588=1', the announce of timesync functions will be build. However the dpdk_conf doesn't hav RTE_LIBRTE_IEEE1588 so that the file dpaa2_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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build index 6dd0eb274..43d625dc5 100644 --- a/drivers/net/dpaa2/meson.build +++ b/drivers/net/dpaa2/meson.build @@ -17,6 +17,12 @@ sources = files('base/dpaa2_hw_dpni.c', 'mc/dpdmux.c', 'mc/dpni.c') +foreach each:get_option('c_args') + if each.contains('-DRTE_LIBRTE_IEEE1588') + dpdk_conf.set('RTE_LIBRTE_IEEE1588', 1) + endif +endforeach + if dpdk_conf.has('RTE_LIBRTE_IEEE1588') sources += files('mc/dprtc.c') sources += files('dpaa2_ptp.c') -- 2.17.1