From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 44A7BC34E for ; Wed, 22 Jun 2016 13:57:27 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bFgov-0002B7-RS; Wed, 22 Jun 2016 13:59:50 +0200 To: Thomas Monjalon , Panu Matilainen References: <191edb8105649612fab5f0e691f587715b78e664.1466595242.git.pmatilai@redhat.com> <293319946.9flpxUKHBY@xps13> Cc: dev@dpdk.org, cristian.dumitrescu@intel.com, zhuangwj@gmail.com From: Olivier Matz Message-ID: <576A7D20.4030801@6wind.com> Date: Wed, 22 Jun 2016 13:57:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <293319946.9flpxUKHBY@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] port: fix build when KNI support is not enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 11:57:27 -0000 Hi Thomas, On 06/22/2016 01:49 PM, Thomas Monjalon wrote: > 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. > It's probably not much used, but the build framework allows to do the following to build only one directory: make lib/librte_port_sub This directly jumps to the librte_port Makefile, bypassing parent directories. I think that's why the config check is duplicated in the Makefile. Olivier