From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Iremonger, Bernard" Subject: Re: [PATCH v8 2/2] app/test_pmd: add tests for new API's Date: Wed, 12 Oct 2016 16:21:12 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C21A092162@IRSMSX108.ger.corp.intel.com> References: <1475858784-5303-1-git-send-email-bernard.iremonger@intel.com> <2791430.Y8ncTCNxt5@xps13> <8CEF83825BEC744B83065625E567D7C21A09209C@IRSMSX108.ger.corp.intel.com> <4355552.XQIr0B1y70@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "Shah, Rahul R" , "Lu, Wenzhuo" , "az5157@att.com" , "De Lara Guarch, Pablo" To: Thomas Monjalon Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 1F4D62B8C for ; Wed, 12 Oct 2016 18:21:16 +0200 (CEST) In-Reply-To: <4355552.XQIr0B1y70@xps13> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Thomas, > > > > > Subject: Re: [dpdk-dev] [PATCH v8 2/2] app/test_pmd: add tests > > > > > for new API's > > > > > > > > > > 2016-10-12 16:03, Bernard Iremonger: > > > > > > --- a/app/test-pmd/Makefile > > > > > > +++ b/app/test-pmd/Makefile > > > > > > @@ -58,6 +58,17 @@ SRCS-y +=3D csumonly.c SRCS-y +=3D icmpecho= .c > > > > > > SRCS-$(CONFIG_RTE_LIBRTE_IEEE1588) +=3D ieee1588fwd.c > > > > > > > > > > > > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n) > > > > > > +LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe > > > endif > > > > > > + > > > > > > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > > > > > > +ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) > > > > > > +LDLIBS +=3D -lrte_pmd_ixgbe > > > > > > +endif > > > > > > +endif > > > > > > > > > > Sorry if I miss something, but I thought it was enough to do: > > > > > LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe > > > > > > > > No unfortunately not, the above line does not work for all scenario= s . > > > > > > > > There are 4 scenarios as follows: > > > > > > > > CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dy with > > > CONFIG_RTE_BUILD_SHARED_LIB=3Dn > > > > > > > > CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dy with > > > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > > > > > > > > CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dn with > > > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > > > > > > > > CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dn with > > > CONFIG_RTE_BUILD_SHARED_LIB=3Dn > > > > > > > > I have been doing quite a bit of building today to get it to work > > > > in all 4 > > > scenarios. > > > > > > I have a doubt about the tests because LDLIBS-y does not exist. > > > There is _LDLIBS-y and LDLIBS. > > > But in the static case, you wrote: > > > LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe > endif > > > Please could you check? > > > > LDLIBS-y exists in some of the scenarios but not all. >=20 > I think I'm something obvious. > Please could you point the line where LDLIBS-y is used? Line 62 of latest Makefile; LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe LDLIBS-y does not exist when CONFIG_RTE_BUILD_SHARED_LIB=3Dy =20 > > Do you want me to check the four scenarios with just the line below. > > > > LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe >=20 > Let's check the theory first :) Ok Regards, Bernard.