From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] net/octeontx: disable PMD for old compilers Date: Thu, 25 Jan 2018 13:58:32 +0000 Message-ID: <11910e83-35cc-deb0-fff4-e01bde0a2240@intel.com> References: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Pavan Nikhilesh , jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DD0411B01D for ; Thu, 25 Jan 2018 14:58:34 +0100 (CET) In-Reply-To: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/23/2018 4:22 PM, Pavan Nikhilesh wrote: > Disable for clang < 4.0 as it doesn't support the following > arm machine directives: > > .cpu > > This also disables event octeontx as it depends on net octeontx. > > Signed-off-by: Pavan Nikhilesh <...> > @@ -20,3 +20,8 @@ CLANG_MINOR_VERSION := $(shell echo $(CLANG_VERSION) | cut -f2 -d.) > ifeq ($(shell test $(CLANG_MAJOR_VERSION)$(CLANG_MINOR_VERSION) -lt 35 && echo 1), 1) > CC_SUPPORTS_Z := false > endif > + > +ifeq ($(shell test $(CLANG_MAJOR_VERSION)$(CLANG_MINOR_VERSION) -lt 40 && echo 1), 1) > + CONFIG_RTE_LIBRTE_OCTEONTX_PMD=d > + CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=d > +endif I remember we did this before but this is ugly. Can it be done in a generic way that compiler dependencies defined in the PMD Makefile and during config PMD may be disable based on dependency and environment. If there is no dependency PMD will not do anything special, does it make sense?