From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 273E4C433E2 for ; Thu, 17 Sep 2020 09:16:41 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id A6A4F2076D for ; Thu, 17 Sep 2020 09:16:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6A4F2076D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3A5501D5B7; Thu, 17 Sep 2020 11:16:39 +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-dev] [PATCH v2] net/dpaa2: fix build error about timesync functions 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" 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