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 90140C43461 for ; Tue, 15 Sep 2020 03:11:17 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 045FE20897 for ; Tue, 15 Sep 2020 03:11:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 045FE20897 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 45E931BF83; Tue, 15 Sep 2020 05:11:16 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A47FF160; Tue, 15 Sep 2020 05:11:13 +0200 (CEST) IronPort-SDR: A/5TsDp1ch+jYpwvAj3Ybe5ke9+j0KrorIs0n7CgtYu5mGhR1Fj9ixG8Qod+zKULMncyOp45XB Dy6U5dlLeaIQ== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="156585453" X-IronPort-AV: E=Sophos;i="5.76,428,1592895600"; d="scan'208";a="156585453" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 20:11:11 -0700 IronPort-SDR: 3aJF/pUZ/RhLhDWX/Nheu6mc91tq+OuQCaG5UnrdkvVnekHKOle0CxmhHlh6voycUhIJX0XxqF MtjLqSHZi9Pg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,428,1592895600"; d="scan'208";a="319281634" Received: from unknown (HELO localhost.localdomain) ([10.239.255.61]) by orsmga002.jf.intel.com with ESMTP; 14 Sep 2020 20:11:09 -0700 From: Chenxu Di To: dev@dpdk.org Cc: hemant.agrawal@nxp.com, sachin.saxena@nxp.com, Chenxu Di , stable@dpdk.org Date: Tue, 15 Sep 2020 02:40:55 +0000 Message-Id: <20200915024055.72103-1-chenxux.di@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] 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 | 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 = files('base/dpaa2_hw_dpni.c', 'mc/dpdmux.c', 'mc/dpni.c') +if '-DRTE_LIBRTE_IEEE1588=1' in get_option('c_args') + dpdk_conf.set('RTE_LIBRTE_IEEE1588', 1) +endif + if dpdk_conf.has('RTE_LIBRTE_IEEE1588') sources += files('mc/dprtc.c') sources += files('dpaa2_ptp.c') -- 2.17.1