From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] port: fix build when KNI support is not enabled Date: Wed, 22 Jun 2016 13:49:39 +0200 Message-ID: <293319946.9flpxUKHBY@xps13> References: <191edb8105649612fab5f0e691f587715b78e664.1466595242.git.pmatilai@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, cristian.dumitrescu@intel.com, zhuangwj@gmail.com, olivier.matz@6wind.com To: Panu Matilainen Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 28F50C12E for ; Wed, 22 Jun 2016 13:49:42 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id r201so2237799wme.1 for ; Wed, 22 Jun 2016 04:49:42 -0700 (PDT) In-Reply-To: <191edb8105649612fab5f0e691f587715b78e664.1466595242.git.pmatilai@redhat.com> 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" 2016-06-22 14:34, Panu Matilainen: > --- a/lib/librte_port/Makefile > +++ b/lib/librte_port/Makefile > @@ -82,6 +82,8 @@ DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_mempool > DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_ether > DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_ip_frag > DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_sched > +ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) > DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_kni > +endif I do not remember why $(CONFIG_RTE_LIBRTE_PORT) is needed in its Makefile. I think we can do DEPDIRS-$(CONFIG_RTE_LIBRTE_KNI) += lib/librte_kni and set DEPDIRS-y everywhere else.