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 BF51737B4 for ; Tue, 20 Jun 2017 16:43:42 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2017 07:43:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,364,1493708400"; d="scan'208";a="1184819128" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.28]) by fmsmga002.fm.intel.com with SMTP; 20 Jun 2017 07:43:39 -0700 Received: by (sSMTP sendmail emulation); Tue, 20 Jun 2017 15:43:38 +0100 Date: Tue, 20 Jun 2017 15:43:38 +0100 From: Bruce Richardson To: Morten =?iso-8859-1?Q?Br=F8rup?= Cc: "Wiles, Keith" , Christian Ehrhardt , Stephen Hemminger , dev Message-ID: <20170620144338.GA87844@bricha3-MOBL3.ger.corp.intel.com> References: <20170607104743.275149-1-bruce.richardson@intel.com> <20170607162617.00d009ff@xeon-e3> <20170608085901.GC58216@bricha3-MOBL3.ger.corp.intel.com> <20170608092658.6a4bfc5c@xeon-e3> <20170609090515.GB59768@bricha3-MOBL3.ger.corp.intel.com> <946E12D3-50BD-49DF-A73F-F29896C7DDDD@intel.com> <98CBD80474FA8B44BF855DF32C47DC359EB177@smartserver.smartshare.dk> <20170620134127.GA89552@bricha3-MOBL3.ger.corp.intel.com> <98CBD80474FA8B44BF855DF32C47DC359EB17A@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC359EB17A@smartserver.smartshare.dk> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.1 (2017-04-11) Subject: Re: [dpdk-dev] [RFC PATCH] replace DPDK config and build system 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: Tue, 20 Jun 2017 14:43:44 -0000 On Tue, Jun 20, 2017 at 04:25:12PM +0200, Morten Brørup wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Bruce Richardson > > Sent: Tuesday, June 20, 2017 3:41 PM > > To: Morten Brørup > > Cc: Wiles, Keith; Christian Ehrhardt; Stephen Hemminger; dev > > Subject: Re: [dpdk-dev] [RFC PATCH] replace DPDK config and build > > system > > > > On Tue, Jun 20, 2017 at 03:34:58PM +0200, Morten Brørup wrote: > > > FYI: We are using Crosstool-NG (http://crosstool-ng.github.io/). It > > seems to be quite popular for cross compiling. > > > > > > > How does a tool like that interact with build-systems then - either > > with our current one, or with a hypothetical future one using > > meson+ninja as below? Does it simplify what needs to be provided in the > > build config tool? > > > > /Bruce > > The main purpose of our build-system is to be able to just type "make" to build everything in our project (including the cross compiler itself). The purpose is not to simplify the build config tool for each of the libraries and executables in our project. > > Please note that standardization is a benefit in itself! If every 3rd party library and executable in a complex project like ours had completely different build-systems, it would be a nightmare for us to maintain our project. > > And to answer your question: Basically when using cross-tools, we set up a bunch of environment variables and then call the Makefile of each library and executable in the project (to configure and/or compile them). These environment variables are somewhat standardized, so modifying a Makefile for a 3rd party library/executable that is not designed for cross compiling is only a minor pain, not a major pain. I haven't looked at meson+ninja, but from reading the discussion here, it seems somewhat similar. > > If DPDK switches to meson+ninja we will make it work for us too, so I'm not opposing such a change. I only wanted to highlight that Crosstool-NG is a very popular cross compiling environment, and has a good track record in this area. > > > Med venlig hilsen / kind regards > - Morten Brørup > Thanks for the clarification.