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 E04BAA04C7 for ; Tue, 15 Sep 2020 05:11:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C53001C0C2; Tue, 15 Sep 2020 05:11:17 +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-stable] [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" 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