From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] tools: add tags and cscope index file generation support Date: Fri, 13 Jan 2017 08:20:06 +0530 Message-ID: <20170113025005.GA2951@localhost.localdomain> References: <1480205562-32745-1-git-send-email-jerin.jacob@caviumnetworks.com> <204efa1f-0631-ed9c-3d68-8c573edfbb76@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , To: Ferruh Yigit Return-path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0083.outbound.protection.outlook.com [104.47.33.83]) by dpdk.org (Postfix) with ESMTP id D3A042C6D for ; Fri, 13 Jan 2017 03:50:27 +0100 (CET) Content-Disposition: inline In-Reply-To: <204efa1f-0631-ed9c-3d68-8c573edfbb76@intel.com> 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 Thu, Jan 12, 2017 at 02:19:44PM +0000, Ferruh Yigit wrote: > On 11/27/2016 12:12 AM, Jerin Jacob wrote: > > This script generates cscope, gtags, and tags > > index files based on EAL environment. > > (architecture and OS(linux/bsd)) > > > > Selection of the architecture and OS environment > > is based on dpdk configuration target(T=) > > > > example usage: > > make tags T=x86_64-native-linuxapp-gcc > > make cscope T=x86_64-native-linuxapp-gcc > > make gtags T=x86_64-native-linuxapp-gcc > > > > Signed-off-by: Jerin Jacob > > <...> > > > + > > +if [ -n "$T" ]; then > <...> > > + usage $1 > > + exit > > I would prefer fallback to RTE_TARGET parsing, or processing all files ( > cscope -Rqn ), instead of exiting here, but that is your call. I would prefer avoid any fallback(sometimes RTE_TARGET can be "build" also) and print the usage and exit error if the requirements are not meet. > > > Also "tags.sh" needs to be moved into "devtools" after latest updates. Sure. I will send v2 to address this. > > Reviewed-by: Ferruh Yigit Thanks for the review.