From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 05:58:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,412,1511856000"; d="scan'208";a="22498015" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.48]) ([10.237.220.48]) by FMSMGA003.fm.intel.com with ESMTP; 25 Jan 2018 05:58:32 -0800 To: Pavan Nikhilesh , jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com Cc: dev@dpdk.org References: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> From: Ferruh Yigit Message-ID: <11910e83-35cc-deb0-fff4-e01bde0a2240@intel.com> Date: Thu, 25 Jan 2018 13:58:32 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/octeontx: disable PMD for old compilers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 13:58:35 -0000 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?